summaryrefslogtreecommitdiffstats
path: root/tests/ui/methods/method-ambiguity-no-rcvr.rs
blob: 8f36011d41f97b57fa1a33a1c65956794e57e3c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct Qux;

trait Foo {
    fn foo();
}

trait FooBar {
    fn foo() {}
}

fn main() {
    Qux.foo();
    //~^ ERROR no method named `foo` found for struct `Qux` in the current scope
}