summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/ambiguous-11.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/imports/ambiguous-11.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/imports/ambiguous-11.rs b/tests/ui/imports/ambiguous-11.rs
new file mode 100644
index 000000000..0565b9d22
--- /dev/null
+++ b/tests/ui/imports/ambiguous-11.rs
@@ -0,0 +1,14 @@
+// aux-build: ambiguous-11-extern.rs
+
+extern crate ambiguous_11_extern;
+
+mod s {
+ pub trait Error {}
+}
+
+use s::*;
+use ambiguous_11_extern::*;
+fn a<E: Error>(_: E) {}
+//~^ ERROR `Error` is ambiguous
+
+fn main() {}