|
| 1 | +error: no method named `closure` found for type `Obj<[closure@$DIR/issue-2392.rs:49:36: 49:41]>` in the current scope |
| 2 | + --> $DIR/issue-2392.rs:50:15 |
| 3 | + | |
| 4 | +50 | o_closure.closure(); //~ ERROR no method named `closure` found |
| 5 | + | ^^^^^^^ field, not a method |
| 6 | + | |
| 7 | + = help: use `(o_closure.closure)(...)` if you meant to call the function stored in the `closure` field |
| 8 | + |
| 9 | +error: no method named `not_closure` found for type `Obj<[closure@$DIR/issue-2392.rs:49:36: 49:41]>` in the current scope |
| 10 | + --> $DIR/issue-2392.rs:54:15 |
| 11 | + | |
| 12 | +54 | o_closure.not_closure(); |
| 13 | + | ^^^^^^^^^^^ field, not a method |
| 14 | + | |
| 15 | + = help: did you mean to write `o_closure.not_closure` instead of `o_closure.not_closure(...)`? |
| 16 | + |
| 17 | +error: no method named `closure` found for type `Obj<fn() -> u32 {func}>` in the current scope |
| 18 | + --> $DIR/issue-2392.rs:60:12 |
| 19 | + | |
| 20 | +60 | o_func.closure(); //~ ERROR no method named `closure` found |
| 21 | + | ^^^^^^^ field, not a method |
| 22 | + | |
| 23 | + = help: use `(o_func.closure)(...)` if you meant to call the function stored in the `closure` field |
| 24 | + |
| 25 | +error: no method named `boxed_closure` found for type `BoxedObj` in the current scope |
| 26 | + --> $DIR/issue-2392.rs:65:14 |
| 27 | + | |
| 28 | +65 | boxed_fn.boxed_closure();//~ ERROR no method named `boxed_closure` found |
| 29 | + | ^^^^^^^^^^^^^ field, not a method |
| 30 | + | |
| 31 | + = help: use `(boxed_fn.boxed_closure)(...)` if you meant to call the function stored in the `boxed_closure` field |
| 32 | + |
| 33 | +error: no method named `boxed_closure` found for type `BoxedObj` in the current scope |
| 34 | + --> $DIR/issue-2392.rs:70:19 |
| 35 | + | |
| 36 | +70 | boxed_closure.boxed_closure();//~ ERROR no method named `boxed_closure` found |
| 37 | + | ^^^^^^^^^^^^^ field, not a method |
| 38 | + | |
| 39 | + = help: use `(boxed_closure.boxed_closure)(...)` if you meant to call the function stored in the `boxed_closure` field |
| 40 | + |
| 41 | +error: no method named `closure` found for type `Obj<fn() -> u32 {func}>` in the current scope |
| 42 | + --> $DIR/issue-2392.rs:77:12 |
| 43 | + | |
| 44 | +77 | w.wrap.closure();//~ ERROR no method named `closure` found |
| 45 | + | ^^^^^^^ field, not a method |
| 46 | + | |
| 47 | + = help: use `(w.wrap.closure)(...)` if you meant to call the function stored in the `closure` field |
| 48 | + |
| 49 | +error: no method named `not_closure` found for type `Obj<fn() -> u32 {func}>` in the current scope |
| 50 | + --> $DIR/issue-2392.rs:81:12 |
| 51 | + | |
| 52 | +81 | w.wrap.not_closure(); |
| 53 | + | ^^^^^^^^^^^ field, not a method |
| 54 | + | |
| 55 | + = help: did you mean to write `w.wrap.not_closure` instead of `w.wrap.not_closure(...)`? |
| 56 | + |
| 57 | +error: no method named `closure` found for type `Obj<std::boxed::Box<std::boxed::FnBox<(), Output=u32> + 'static>>` in the current scope |
| 58 | + --> $DIR/issue-2392.rs:86:24 |
| 59 | + | |
| 60 | +86 | check_expression().closure();//~ ERROR no method named `closure` found |
| 61 | + | ^^^^^^^ field, not a method |
| 62 | + | |
| 63 | + = help: use `(check_expression().closure)(...)` if you meant to call the function stored in the `closure` field |
| 64 | + |
| 65 | +error: no method named `f1` found for type `FuncContainer` in the current scope |
| 66 | + --> $DIR/issue-2392.rs:94:31 |
| 67 | + | |
| 68 | +94 | (*self.container).f1(1); //~ ERROR no method named `f1` found |
| 69 | + | ^^ field, not a method |
| 70 | + | |
| 71 | + = help: use `((*self.container).f1)(...)` if you meant to call the function stored in the `f1` field |
| 72 | + |
| 73 | +error: no method named `f2` found for type `FuncContainer` in the current scope |
| 74 | + --> $DIR/issue-2392.rs:97:31 |
| 75 | + | |
| 76 | +97 | (*self.container).f2(1); //~ ERROR no method named `f2` found |
| 77 | + | ^^ field, not a method |
| 78 | + | |
| 79 | + = help: use `((*self.container).f2)(...)` if you meant to call the function stored in the `f2` field |
| 80 | + |
| 81 | +error: no method named `f3` found for type `FuncContainer` in the current scope |
| 82 | + --> $DIR/issue-2392.rs:100:31 |
| 83 | + | |
| 84 | +100 | (*self.container).f3(1); //~ ERROR no method named `f3` found |
| 85 | + | ^^ field, not a method |
| 86 | + | |
| 87 | + = help: use `((*self.container).f3)(...)` if you meant to call the function stored in the `f3` field |
| 88 | + |
| 89 | +error: aborting due to 11 previous errors |
| 90 | + |
0 commit comments