summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0223.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/error-codes/E0223.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0223.rs b/tests/ui/error-codes/E0223.rs
new file mode 100644
index 000000000..2fe252de2
--- /dev/null
+++ b/tests/ui/error-codes/E0223.rs
@@ -0,0 +1,10 @@
+trait MyTrait { type X; }
+struct MyStruct;
+impl MyTrait for MyStruct {
+ type X = ();
+}
+
+fn main() {
+ let foo: MyTrait::X;
+ //~^ ERROR ambiguous associated type
+}