[COMMITTED 51/83] gccrs: Add test to highlight issue Rust-GCC/gccrs#4735

arthur.cohen@opensrcsec.com arthur.cohen@opensrcsec.com
Wed Sep 16 12:30:10 GMT 2026


From: Pierre-Emmanuel Patry <pierre.emmanuel.patry@opensrcsec.com>

gcc/testsuite/ChangeLog:

	* rust/compile/issue-4735.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <pierre.emmanuel.patry@opensrcsec.com>
---
 gcc/testsuite/rust/compile/issue-4735.rs | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 gcc/testsuite/rust/compile/issue-4735.rs

diff --git a/gcc/testsuite/rust/compile/issue-4735.rs b/gcc/testsuite/rust/compile/issue-4735.rs
new file mode 100644
index 00000000000..53e56e1803d
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issue-4735.rs
@@ -0,0 +1,4 @@
+#![feature(no_core)]
+#![no_core]
+use self::self;
+// { dg-error ".self. imports are only allowed within a" {} { target *-*-* } .-1 }
-- 
2.50.1



More information about the Gcc-rust mailing list