1 2 3 4 5 6 7 8 9 10
trait MyTrait { type X; } struct MyStruct; impl MyTrait for MyStruct { type X = (); } fn main() { let foo: MyTrait::X; //~^ ERROR ambiguous associated type }