1
- error[E0599]: no method named `closure` found for type `Obj<[closure@$DIR/issue-2392.rs:35:36: 35:41]>` in the current scope
1
+ error[E0599]: no method named `closure` found for struct `Obj<[closure@$DIR/issue-2392.rs:35:36: 35:41]>` in the current scope
2
2
--> $DIR/issue-2392.rs:36:15
3
3
|
4
4
LL | struct Obj<F> where F: FnOnce() -> u32 {
@@ -12,7 +12,7 @@ help: to call the function stored in `closure`, surround the field access with p
12
12
LL | (o_closure.closure)();
13
13
| ^ ^
14
14
15
- error[E0599]: no method named `not_closure` found for type `Obj<[closure@$DIR/issue-2392.rs:35:36: 35:41]>` in the current scope
15
+ error[E0599]: no method named `not_closure` found for struct `Obj<[closure@$DIR/issue-2392.rs:35:36: 35:41]>` in the current scope
16
16
--> $DIR/issue-2392.rs:38:15
17
17
|
18
18
LL | struct Obj<F> where F: FnOnce() -> u32 {
@@ -23,7 +23,7 @@ LL | o_closure.not_closure();
23
23
| |
24
24
| field, not a method
25
25
26
- error[E0599]: no method named `closure` found for type `Obj<fn() -> u32 {func}>` in the current scope
26
+ error[E0599]: no method named `closure` found for struct `Obj<fn() -> u32 {func}>` in the current scope
27
27
--> $DIR/issue-2392.rs:42:12
28
28
|
29
29
LL | struct Obj<F> where F: FnOnce() -> u32 {
@@ -37,7 +37,7 @@ help: to call the function stored in `closure`, surround the field access with p
37
37
LL | (o_func.closure)();
38
38
| ^ ^
39
39
40
- error[E0599]: no method named `boxed_closure` found for type `BoxedObj` in the current scope
40
+ error[E0599]: no method named `boxed_closure` found for struct `BoxedObj` in the current scope
41
41
--> $DIR/issue-2392.rs:45:14
42
42
|
43
43
LL | struct BoxedObj {
@@ -51,7 +51,7 @@ help: to call the function stored in `boxed_closure`, surround the field access
51
51
LL | (boxed_fn.boxed_closure)();
52
52
| ^ ^
53
53
54
- error[E0599]: no method named `boxed_closure` found for type `BoxedObj` in the current scope
54
+ error[E0599]: no method named `boxed_closure` found for struct `BoxedObj` in the current scope
55
55
--> $DIR/issue-2392.rs:48:19
56
56
|
57
57
LL | struct BoxedObj {
@@ -65,7 +65,7 @@ help: to call the function stored in `boxed_closure`, surround the field access
65
65
LL | (boxed_closure.boxed_closure)();
66
66
| ^ ^
67
67
68
- error[E0599]: no method named `closure` found for type `Obj<fn() -> u32 {func}>` in the current scope
68
+ error[E0599]: no method named `closure` found for struct `Obj<fn() -> u32 {func}>` in the current scope
69
69
--> $DIR/issue-2392.rs:53:12
70
70
|
71
71
LL | struct Obj<F> where F: FnOnce() -> u32 {
@@ -79,7 +79,7 @@ help: to call the function stored in `closure`, surround the field access with p
79
79
LL | (w.wrap.closure)();
80
80
| ^ ^
81
81
82
- error[E0599]: no method named `not_closure` found for type `Obj<fn() -> u32 {func}>` in the current scope
82
+ error[E0599]: no method named `not_closure` found for struct `Obj<fn() -> u32 {func}>` in the current scope
83
83
--> $DIR/issue-2392.rs:55:12
84
84
|
85
85
LL | struct Obj<F> where F: FnOnce() -> u32 {
@@ -90,7 +90,7 @@ LL | w.wrap.not_closure();
90
90
| |
91
91
| field, not a method
92
92
93
- error[E0599]: no method named `closure` found for type `Obj<std::boxed::Box<(dyn std::ops::FnOnce() -> u32 + 'static)>>` in the current scope
93
+ error[E0599]: no method named `closure` found for struct `Obj<std::boxed::Box<(dyn std::ops::FnOnce() -> u32 + 'static)>>` in the current scope
94
94
--> $DIR/issue-2392.rs:58:24
95
95
|
96
96
LL | struct Obj<F> where F: FnOnce() -> u32 {
@@ -104,7 +104,7 @@ help: to call the function stored in `closure`, surround the field access with p
104
104
LL | (check_expression().closure)();
105
105
| ^ ^
106
106
107
- error[E0599]: no method named `f1` found for type `FuncContainer` in the current scope
107
+ error[E0599]: no method named `f1` found for struct `FuncContainer` in the current scope
108
108
--> $DIR/issue-2392.rs:64:31
109
109
|
110
110
LL | struct FuncContainer {
@@ -118,7 +118,7 @@ help: to call the function stored in `f1`, surround the field access with parent
118
118
LL | ((*self.container).f1)(1);
119
119
| ^ ^
120
120
121
- error[E0599]: no method named `f2` found for type `FuncContainer` in the current scope
121
+ error[E0599]: no method named `f2` found for struct `FuncContainer` in the current scope
122
122
--> $DIR/issue-2392.rs:65:31
123
123
|
124
124
LL | struct FuncContainer {
@@ -132,7 +132,7 @@ help: to call the function stored in `f2`, surround the field access with parent
132
132
LL | ((*self.container).f2)(1);
133
133
| ^ ^
134
134
135
- error[E0599]: no method named `f3` found for type `FuncContainer` in the current scope
135
+ error[E0599]: no method named `f3` found for struct `FuncContainer` in the current scope
136
136
--> $DIR/issue-2392.rs:66:31
137
137
|
138
138
LL | struct FuncContainer {
0 commit comments