blob: 1cd3f84f7a2270ec54df1c7817df02dbfa64707d [file] [log] [blame]
struct Ret;
struct Obj;
impl Obj {
fn func() -> Ret {
Ret
}
}
fn func() -> Ret {
Ret
}
fn main() {
Obj::func.x();
//~^ ERROR no method named `x` found for type `fn() -> Ret {Obj::func}` in the current scope
func.x();
//~^ ERROR no method named `x` found for type `fn() -> Ret {func}` in the current scope
}