blob: 2fe252de256650cf5b67b00bd1e0a28c7557572d [file] [log] [blame] [edit]
trait MyTrait { type X; }
struct MyStruct;
impl MyTrait for MyStruct {
type X = ();
}
fn main() {
let foo: MyTrait::X;
//~^ ERROR ambiguous associated type
}