summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-107087.rs
blob: 135cdf19e3e3e417b81bd27465df5e5b365d252a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct A<T>(T);

trait Foo {
    type B;
}

impl Foo for A<u32> {
    type B = i32;
}

impl Foo for A<i32> {
    type B = i32;
}

fn main() {
    A::B::<>::C
    //~^ ERROR ambiguous associated type
}