summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-56125.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/issue-56125.rs')
-rw-r--r--tests/ui/imports/issue-56125.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/imports/issue-56125.rs b/tests/ui/imports/issue-56125.rs
new file mode 100644
index 000000000..ec5747b4b
--- /dev/null
+++ b/tests/ui/imports/issue-56125.rs
@@ -0,0 +1,21 @@
+// edition:2018
+// compile-flags:--extern issue_56125
+// aux-build:issue-56125.rs
+
+mod m1 {
+ use issue_56125::last_segment::*;
+ //~^ ERROR `issue_56125` is ambiguous
+}
+
+mod m2 {
+ use issue_56125::non_last_segment::non_last_segment::*;
+ //~^ ERROR `issue_56125` is ambiguous
+}
+
+mod m3 {
+ mod empty {}
+ use empty::issue_56125; //~ ERROR unresolved import `empty::issue_56125`
+ use issue_56125::*; //~ ERROR `issue_56125` is ambiguous
+}
+
+fn main() {}