blob: 9b507f9b9882b6c63d866f567f18b8ad9918aefc [file] [log] [blame]
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() {
}