]> git.proxmox.com Git - rustc.git/blame - src/test/ui/confuse-field-and-method/issue-33784.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / confuse-field-and-method / issue-33784.stderr
CommitLineData
0731742a
XL
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
cc61c64b 3 |
532ac7d7 4LL | p.closure();
cc61c64b 5 | ^^^^^^^ field, not a method
e74abb32 6 |
532ac7d7 7help: to call the function stored in `closure`, surround the field access with parentheses
cc61c64b 8 |
532ac7d7
XL
9LL | (p.closure)();
10 | ^ ^
cc61c64b 11
0731742a
XL
12error[E0599]: no method named `fn_ptr` found for type `&&Obj<[closure@$DIR/issue-33784.rs:25:43: 25:48]>` in the current scope
13 --> $DIR/issue-33784.rs:29:7
cc61c64b 14 |
532ac7d7 15LL | q.fn_ptr();
cc61c64b 16 | ^^^^^^ field, not a method
e74abb32 17 |
532ac7d7 18help: to call the function stored in `fn_ptr`, surround the field access with parentheses
cc61c64b 19 |
532ac7d7
XL
20LL | (q.fn_ptr)();
21 | ^ ^
cc61c64b 22
7cac9316 23error[E0599]: no method named `c_fn_ptr` found for type `&D` in the current scope
0731742a 24 --> $DIR/issue-33784.rs:32:7
cc61c64b 25 |
532ac7d7 26LL | s.c_fn_ptr();
cc61c64b 27 | ^^^^^^^^ field, not a method
e74abb32 28 |
532ac7d7 29help: to call the function stored in `c_fn_ptr`, surround the field access with parentheses
cc61c64b 30 |
532ac7d7
XL
31LL | (s.c_fn_ptr)();
32 | ^ ^
cc61c64b 33
041b39d2 34error: aborting due to 3 previous errors
cc61c64b 35
0531ce1d 36For more information about this error, try `rustc --explain E0599`.