summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/extern-prelude-extern-crate-shadowing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/extern-prelude-extern-crate-shadowing.rs')
-rw-r--r--tests/ui/imports/extern-prelude-extern-crate-shadowing.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/imports/extern-prelude-extern-crate-shadowing.rs b/tests/ui/imports/extern-prelude-extern-crate-shadowing.rs
new file mode 100644
index 000000000..9e69a27d7
--- /dev/null
+++ b/tests/ui/imports/extern-prelude-extern-crate-shadowing.rs
@@ -0,0 +1,12 @@
+// build-pass (FIXME(62277): could be check-pass?)
+// aux-build:two_macros.rs
+
+extern crate two_macros as core;
+
+mod m {
+ fn check() {
+ core::m!(); // OK
+ }
+}
+
+fn main() {}