fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.1 KiB33 linesraw
1error[E0599]: no method named `closure` found for type `&Obj<[closure@$DIR/issue-33784.rs:25:43: 25:48]>` in the current scope
2  --> $DIR/issue-33784.rs:27:7
3   |
4LL |     p.closure();
5   |       ^^^^^^^ field, not a method
6help: to call the function stored in `closure`, surround the field access with parentheses
7   |
8LL |     (p.closure)();
9   |     ^         ^
10
11error[E0599]: no method named `fn_ptr` found for type `&&Obj<[closure@$DIR/issue-33784.rs:25:43: 25:48]>` in the current scope
12  --> $DIR/issue-33784.rs:29:7
13   |
14LL |     q.fn_ptr();
15   |       ^^^^^^ field, not a method
16help: to call the function stored in `fn_ptr`, surround the field access with parentheses
17   |
18LL |     (q.fn_ptr)();
19   |     ^        ^
20
21error[E0599]: no method named `c_fn_ptr` found for type `&D` in the current scope
22  --> $DIR/issue-33784.rs:32:7
23   |
24LL |     s.c_fn_ptr();
25   |       ^^^^^^^^ field, not a method
26help: to call the function stored in `c_fn_ptr`, surround the field access with parentheses
27   |
28LL |     (s.c_fn_ptr)();
29   |     ^          ^
30
31error: aborting due to 3 previous errors
32
33For more information about this error, try `rustc --explain E0599`.