[gccrs COMMIT 4/4] Add test to highlight issue Rust-GCC/gccrs#4735
gerris.rs@gmail.com
gerris.rs@gmail.com
Sun Sep 6 01:01:04 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>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github: https://github.com/Rust-GCC/gccrs/commit/19935a2586b3d7e00020c0a6567c3261a33f8f28
The commit has been mentioned in the following issue(s):
- Rust-GCC/gccrs#4735: https://github.com/Rust-GCC/gccrs/issues/4735
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/4844
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 000000000..53e56e180
--- /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.55.0
More information about the Gcc-rust
mailing list