2017-12-10 14:29:24 -06:00
|
|
|
error[E0599]: no method named `closure` found for type `Obj<[closure@$DIR/issue-2392.rs:49:36: 49:41]>` in the current scope
|
|
|
|
--> $DIR/issue-2392.rs:50:15
|
2017-03-27 16:54:15 -05:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | struct Obj<F> where F: FnOnce() -> u32 {
|
2017-11-16 00:18:52 -06:00
|
|
|
| -------------------------------------- method `closure` not found for this
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
50 | o_closure.closure(); //~ ERROR no method named `closure` found
|
2017-03-27 16:54:15 -05:00
|
|
|
| ^^^^^^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: use `(o_closure.closure)(...)` if you meant to call the function stored in the `closure` field
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
error[E0599]: no method named `not_closure` found for type `Obj<[closure@$DIR/issue-2392.rs:49:36: 49:41]>` in the current scope
|
|
|
|
--> $DIR/issue-2392.rs:52:15
|
2017-03-27 16:54:15 -05:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | struct Obj<F> where F: FnOnce() -> u32 {
|
2017-11-16 00:18:52 -06:00
|
|
|
| -------------------------------------- method `not_closure` not found for this
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
52 | o_closure.not_closure();
|
2017-03-27 16:54:15 -05:00
|
|
|
| ^^^^^^^^^^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: did you mean to write `o_closure.not_closure` instead of `o_closure.not_closure(...)`?
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0599]: no method named `closure` found for type `Obj<fn() -> u32 {func}>` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-2392.rs:56:12
|
2017-03-27 16:54:15 -05:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | struct Obj<F> where F: FnOnce() -> u32 {
|
2017-11-16 00:18:52 -06:00
|
|
|
| -------------------------------------- method `closure` not found for this
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
56 | o_func.closure(); //~ ERROR no method named `closure` found
|
2017-03-27 16:54:15 -05:00
|
|
|
| ^^^^^^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: use `(o_func.closure)(...)` if you meant to call the function stored in the `closure` field
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0599]: no method named `boxed_closure` found for type `BoxedObj` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-2392.rs:59:14
|
2017-03-27 16:54:15 -05:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
30 | struct BoxedObj {
|
2017-11-16 00:18:52 -06:00
|
|
|
| --------------- method `boxed_closure` not found for this
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
59 | boxed_fn.boxed_closure();//~ ERROR no method named `boxed_closure` found
|
2017-03-27 16:54:15 -05:00
|
|
|
| ^^^^^^^^^^^^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: use `(boxed_fn.boxed_closure)(...)` if you meant to call the function stored in the `boxed_closure` field
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0599]: no method named `boxed_closure` found for type `BoxedObj` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-2392.rs:62:19
|
2017-03-27 16:54:15 -05:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
30 | struct BoxedObj {
|
2017-11-16 00:18:52 -06:00
|
|
|
| --------------- method `boxed_closure` not found for this
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
62 | boxed_closure.boxed_closure();//~ ERROR no method named `boxed_closure` found
|
2017-03-27 16:54:15 -05:00
|
|
|
| ^^^^^^^^^^^^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: use `(boxed_closure.boxed_closure)(...)` if you meant to call the function stored in the `boxed_closure` field
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0599]: no method named `closure` found for type `Obj<fn() -> u32 {func}>` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-2392.rs:67:12
|
2017-03-27 16:54:15 -05:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | struct Obj<F> where F: FnOnce() -> u32 {
|
2017-11-16 00:18:52 -06:00
|
|
|
| -------------------------------------- method `closure` not found for this
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
67 | w.wrap.closure();//~ ERROR no method named `closure` found
|
2017-03-27 16:54:15 -05:00
|
|
|
| ^^^^^^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: use `(w.wrap.closure)(...)` if you meant to call the function stored in the `closure` field
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0599]: no method named `not_closure` found for type `Obj<fn() -> u32 {func}>` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-2392.rs:69:12
|
2017-03-27 16:54:15 -05:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | struct Obj<F> where F: FnOnce() -> u32 {
|
2017-11-16 00:18:52 -06:00
|
|
|
| -------------------------------------- method `not_closure` not found for this
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
69 | w.wrap.not_closure();
|
2017-03-27 16:54:15 -05:00
|
|
|
| ^^^^^^^^^^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: did you mean to write `w.wrap.not_closure` instead of `w.wrap.not_closure(...)`?
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0599]: no method named `closure` found for type `Obj<std::boxed::Box<std::boxed::FnBox<(), Output=u32> + 'static>>` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-2392.rs:72:24
|
2017-03-27 16:54:15 -05:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | struct Obj<F> where F: FnOnce() -> u32 {
|
2017-11-16 00:18:52 -06:00
|
|
|
| -------------------------------------- method `closure` not found for this
|
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
72 | check_expression().closure();//~ ERROR no method named `closure` found
|
2017-03-27 16:54:15 -05:00
|
|
|
| ^^^^^^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: use `(check_expression().closure)(...)` if you meant to call the function stored in the `closure` field
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0599]: no method named `f1` found for type `FuncContainer` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-2392.rs:78:31
|
|
|
|
|
|
|
|
|
15 | struct FuncContainer {
|
|
|
|
| -------------------- method `f1` not found for this
|
2017-11-16 00:18:52 -06:00
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
78 | (*self.container).f1(1); //~ ERROR no method named `f1` found
|
|
|
|
| ^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: use `((*self.container).f1)(...)` if you meant to call the function stored in the `f1` field
|
2017-03-27 16:54:15 -05:00
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0599]: no method named `f2` found for type `FuncContainer` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-2392.rs:79:31
|
|
|
|
|
|
|
|
|
15 | struct FuncContainer {
|
|
|
|
| -------------------- method `f2` not found for this
|
2017-11-16 00:18:52 -06:00
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
79 | (*self.container).f2(1); //~ ERROR no method named `f2` found
|
|
|
|
| ^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: use `((*self.container).f2)(...)` if you meant to call the function stored in the `f2` field
|
2017-03-27 16:54:15 -05:00
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0599]: no method named `f3` found for type `FuncContainer` in the current scope
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-2392.rs:80:31
|
|
|
|
|
|
|
|
|
15 | struct FuncContainer {
|
|
|
|
| -------------------- method `f3` not found for this
|
2017-11-16 00:18:52 -06:00
|
|
|
...
|
2017-12-10 14:29:24 -06:00
|
|
|
80 | (*self.container).f3(1); //~ ERROR no method named `f3` found
|
|
|
|
| ^^ field, not a method
|
|
|
|
|
|
|
|
|
= help: use `((*self.container).f3)(...)` if you meant to call the function stored in the `f3` field
|
2017-03-27 16:54:15 -05:00
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to 11 previous errors
|
2017-03-27 16:54:15 -05:00
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0599"
|