]> git.proxmox.com Git - rustc.git/blame - src/test/ui/confuse-field-and-method/issue-33784.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / confuse-field-and-method / issue-33784.stderr
CommitLineData
064997fb 1error[E0599]: no method named `closure` found for reference `&Obj<[closure@$DIR/issue-33784.rs:25:43: 25:45]>` in the current scope
0731742a 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 9LL | (p.closure)();
94222f64 10 | + +
cc61c64b 11
064997fb 12error[E0599]: no method named `fn_ptr` found for reference `&&Obj<[closure@$DIR/issue-33784.rs:25:43: 25:45]>` in the current scope
0731742a 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 20LL | (q.fn_ptr)();
94222f64 21 | + +
cc61c64b 22
dfeec247 23error[E0599]: no method named `c_fn_ptr` found for reference `&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 31LL | (s.c_fn_ptr)();
94222f64 32 | + +
cc61c64b 33
041b39d2 34error: aborting due to 3 previous errors
cc61c64b 35
0531ce1d 36For more information about this error, try `rustc --explain E0599`.