https://gcc.gnu.org/g:fc24ed206c4b6dd0c9c44182df1ebd8b147a6e84

commit r17-4328-gfc24ed206c4b6dd0c9c44182df1ebd8b147a6e84
Author: Pierre-Emmanuel Patry <[email protected]>
Date:   Thu Sep 3 23:12:00 2026 +0200

    gccrs: Add test to highlight issue Rust-GCC/gccrs#4735
    
    gcc/testsuite/ChangeLog:
    
            * rust/compile/issue-4735.rs: New test.
    
    Signed-off-by: Pierre-Emmanuel Patry <[email protected]>

Diff:
---
 gcc/testsuite/rust/compile/issue-4735.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/testsuite/rust/compile/issue-4735.rs 
b/gcc/testsuite/rust/compile/issue-4735.rs
new file mode 100644
index 000000000000..53e56e1803db
--- /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 }

Reply via email to