summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0186.rs
blob: 83ef78ef2c033db419a5705eacf4eac3562401e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
trait Foo {
    fn foo(&self); //~ `&self` used in trait
}

struct Bar;

impl Foo for Bar {
    fn foo() {} //~ ERROR E0186
    //~^ expected `&self` in impl
}

fn main() {
}