summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/no-fallback-multiple-impls.rs
blob: 7ed3796f08b764c755eccd9e61f33058aac5ec55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
trait Fallback {
    fn foo(&self) {}
}

impl Fallback for i32 {}

impl Fallback for u64 {}

impl Fallback for usize {}

fn main() {
    missing();
    //~^ ERROR cannot find function `missing` in this scope
    0.foo();
    // But then we shouldn't report an inference ambiguity here...
}