summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/ambiguity.rs
blob: 73920555b3e0415982d5526cee4c1c81ff9bfe99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(inherent_associated_types)]
#![allow(incomplete_features)]

struct Wrapper<T>(T);

impl Wrapper<i32> {
    type Foo = i32;
}

impl Wrapper<()> {
    type Foo = ();
}

fn main() {
    let _: Wrapper<_>::Foo = (); //~ ERROR multiple applicable items in scope
}