fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
673 B19 linesraw
1error[E0599]: no method named `x` found for type `fn() -> Ret {Obj::func}` in the current scope
2  --> $DIR/issue-29124.rs:15:15
3   |
4LL |     Obj::func.x();
5   |               ^ method not found in `fn() -> Ret {Obj::func}`
6   |
7   = note: Obj::func is a function, perhaps you wish to call it
8
9error[E0599]: no method named `x` found for type `fn() -> Ret {func}` in the current scope
10  --> $DIR/issue-29124.rs:17:10
11   |
12LL |     func.x();
13   |          ^ method not found in `fn() -> Ret {func}`
14   |
15   = note: func is a function, perhaps you wish to call it
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0599`.