summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-29124.rs
blob: dd2784841758cfcbec14d49636bdcd8f723b10ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
    func.x();
    //~^ ERROR no method named `x` found
}