]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/confuse-field-and-method/issue-33784.stderr
New upstream version 1.28.0+dfsg1
[rustc.git] / src / test / ui / suggestions / confuse-field-and-method / issue-33784.stderr
CommitLineData
7cac9316 1error[E0599]: no method named `closure` found for type `&Obj<[closure@$DIR/issue-33784.rs:35:43: 35:48]>` in the current scope
cc61c64b
XL
2 --> $DIR/issue-33784.rs:37:7
3 |
0531ce1d 4LL | p.closure(); //~ ERROR no method named `closure` found
cc61c64b
XL
5 | ^^^^^^^ field, not a method
6 |
7 = help: use `(p.closure)(...)` if you meant to call the function stored in the `closure` field
8
7cac9316 9error[E0599]: no method named `fn_ptr` found for type `&&Obj<[closure@$DIR/issue-33784.rs:35:43: 35:48]>` in the current scope
ff7c6d11 10 --> $DIR/issue-33784.rs:39:7
cc61c64b 11 |
0531ce1d 12LL | q.fn_ptr(); //~ ERROR no method named `fn_ptr` found
cc61c64b
XL
13 | ^^^^^^ field, not a method
14 |
15 = help: use `(q.fn_ptr)(...)` if you meant to call the function stored in the `fn_ptr` field
16
7cac9316 17error[E0599]: no method named `c_fn_ptr` found for type `&D` in the current scope
ff7c6d11 18 --> $DIR/issue-33784.rs:42:7
cc61c64b 19 |
0531ce1d 20LL | s.c_fn_ptr(); //~ ERROR no method named `c_fn_ptr` found
cc61c64b
XL
21 | ^^^^^^^^ field, not a method
22 |
23 = help: use `(s.c_fn_ptr)(...)` if you meant to call the function stored in the `c_fn_ptr` field
24
041b39d2 25error: aborting due to 3 previous errors
cc61c64b 26
0531ce1d 27For more information about this error, try `rustc --explain E0599`.