about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0186.rs
blob: 9b507f9b9882b6c63d866f567f18b8ad9918aefc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
trait Foo {
    fn foo(&self); //~ NOTE `&self` used in trait
}

struct Bar;

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

fn main() {
}