From: Pierre-Emmanuel Patry <[email protected]>

gcc/testsuite/ChangeLog:

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

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
---
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

Reply via email to