diff options
Diffstat (limited to 'tests/ui/error-codes/E0223.rs')
| -rw-r--r-- | tests/ui/error-codes/E0223.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0223.rs b/tests/ui/error-codes/E0223.rs new file mode 100644 index 00000000000..6031b682d72 --- /dev/null +++ b/tests/ui/error-codes/E0223.rs @@ -0,0 +1,6 @@ +trait MyTrait { type X; } + +fn main() { + let foo: MyTrait::X; + //~^ ERROR ambiguous associated type +} |
