summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/extern-with-ambiguous-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/extern-with-ambiguous-1.rs')
-rw-r--r--tests/ui/imports/extern-with-ambiguous-1.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/imports/extern-with-ambiguous-1.rs b/tests/ui/imports/extern-with-ambiguous-1.rs
new file mode 100644
index 000000000..42c3c2068
--- /dev/null
+++ b/tests/ui/imports/extern-with-ambiguous-1.rs
@@ -0,0 +1,19 @@
+// edition: 2021
+// aux-build: extern-with-ambiguous-1-extern.rs
+
+// `extern-with-ambiguous-1-extern.rs` doesn't has
+// ambiguous, just for compare.
+
+extern crate extern_with_ambiguous_1_extern;
+
+mod s {
+ pub mod error {
+ use extern_with_ambiguous_1_extern::*;
+ }
+}
+use s::*;
+use extern_with_ambiguous_1_extern::*;
+use error::*;
+//~^ ERROR `error` is ambiguous
+
+fn main() {}