blob: 4fb4bd72fcc30f70f56f959dbbd8f6460e7d7c9a [file] [log] [blame] [edit]
struct S;
impl S {
fn foo() {}
fn bar(&self) {
self.foo(); //~ ERROR no method named `foo` found for reference `&S` in the current scope
let f: fn() = self.foo; //~ ERROR no field `foo` on type `&S`
}
}
fn main() {}