summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0223.rs
blob: 2fe252de256650cf5b67b00bd1e0a28c7557572d (plain)
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
}