summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0185.rs
blob: 45eb8b0f239bd1f560e402b28a93fe276e8fabe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
trait Foo {
    fn foo();
    //~^ NOTE trait method declared without `&self`
}

struct Bar;

impl Foo for Bar {
    fn foo(&self) {}
    //~^ ERROR E0185
    //~| NOTE `&self` used in impl
}

fn main() {
}