]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | struct Ret; |
2 | struct Obj; | |
54a0048b | 3 | |
0731742a XL |
4 | impl Obj { |
5 | fn func() -> Ret { | |
6 | Ret | |
54a0048b SL |
7 | } |
8 | } | |
9 | ||
0731742a XL |
10 | fn func() -> Ret { |
11 | Ret | |
54a0048b SL |
12 | } |
13 | ||
14 | fn main() { | |
0731742a | 15 | Obj::func.x(); |
dfeec247 | 16 | //~^ ERROR no method named `x` found |
54a0048b | 17 | func.x(); |
dfeec247 | 18 | //~^ ERROR no method named `x` found |
54a0048b | 19 | } |