]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | error[E0599]: no method named `closure` found for reference `&Obj<[closure@$DIR/issue-33784.rs:25:43: 25:48]>` in the current scope |
0731742a | 2 | --> $DIR/issue-33784.rs:27:7 |
cc61c64b | 3 | | |
532ac7d7 | 4 | LL | p.closure(); |
cc61c64b | 5 | | ^^^^^^^ field, not a method |
e74abb32 | 6 | | |
532ac7d7 | 7 | help: to call the function stored in `closure`, surround the field access with parentheses |
cc61c64b | 8 | | |
532ac7d7 | 9 | LL | (p.closure)(); |
94222f64 | 10 | | + + |
cc61c64b | 11 | |
dfeec247 | 12 | error[E0599]: no method named `fn_ptr` found for reference `&&Obj<[closure@$DIR/issue-33784.rs:25:43: 25:48]>` in the current scope |
0731742a | 13 | --> $DIR/issue-33784.rs:29:7 |
cc61c64b | 14 | | |
532ac7d7 | 15 | LL | q.fn_ptr(); |
cc61c64b | 16 | | ^^^^^^ field, not a method |
e74abb32 | 17 | | |
532ac7d7 | 18 | help: to call the function stored in `fn_ptr`, surround the field access with parentheses |
cc61c64b | 19 | | |
532ac7d7 | 20 | LL | (q.fn_ptr)(); |
94222f64 | 21 | | + + |
cc61c64b | 22 | |
dfeec247 | 23 | error[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 | 26 | LL | s.c_fn_ptr(); |
cc61c64b | 27 | | ^^^^^^^^ field, not a method |
e74abb32 | 28 | | |
532ac7d7 | 29 | help: to call the function stored in `c_fn_ptr`, surround the field access with parentheses |
cc61c64b | 30 | | |
532ac7d7 | 31 | LL | (s.c_fn_ptr)(); |
94222f64 | 32 | | + + |
cc61c64b | 33 | |
041b39d2 | 34 | error: aborting due to 3 previous errors |
cc61c64b | 35 | |
0531ce1d | 36 | For more information about this error, try `rustc --explain E0599`. |