@@ -2,7 +2,7 @@ error[E0599]: no method named `closure` found for struct `Obj` in the current sc
2
2
--> $DIR/issue-2392.rs:36:15
3
3
|
4
4
LL | struct Obj<F> where F: FnOnce() -> u32 {
5
- | -------------------------------------- method `closure` not found for this
5
+ | --- method `closure` not found for this struct
6
6
...
7
7
LL | o_closure.closure();
8
8
| ^^^^^^^ field, not a method
@@ -16,7 +16,7 @@ error[E0599]: no method named `not_closure` found for struct `Obj` in the curren
16
16
--> $DIR/issue-2392.rs:38:15
17
17
|
18
18
LL | struct Obj<F> where F: FnOnce() -> u32 {
19
- | -------------------------------------- method `not_closure` not found for this
19
+ | --- method `not_closure` not found for this struct
20
20
...
21
21
LL | o_closure.not_closure();
22
22
| ^^^^^^^^^^^-- help: remove the arguments
@@ -27,7 +27,7 @@ error[E0599]: no method named `closure` found for struct `Obj` in the current sc
27
27
--> $DIR/issue-2392.rs:42:12
28
28
|
29
29
LL | struct Obj<F> where F: FnOnce() -> u32 {
30
- | -------------------------------------- method `closure` not found for this
30
+ | --- method `closure` not found for this struct
31
31
...
32
32
LL | o_func.closure();
33
33
| ^^^^^^^ field, not a method
@@ -41,7 +41,7 @@ error[E0599]: no method named `boxed_closure` found for struct `BoxedObj` in the
41
41
--> $DIR/issue-2392.rs:45:14
42
42
|
43
43
LL | struct BoxedObj {
44
- | --------------- method `boxed_closure` not found for this
44
+ | -------- method `boxed_closure` not found for this struct
45
45
...
46
46
LL | boxed_fn.boxed_closure();
47
47
| ^^^^^^^^^^^^^ field, not a method
@@ -55,7 +55,7 @@ error[E0599]: no method named `boxed_closure` found for struct `BoxedObj` in the
55
55
--> $DIR/issue-2392.rs:48:19
56
56
|
57
57
LL | struct BoxedObj {
58
- | --------------- method `boxed_closure` not found for this
58
+ | -------- method `boxed_closure` not found for this struct
59
59
...
60
60
LL | boxed_closure.boxed_closure();
61
61
| ^^^^^^^^^^^^^ field, not a method
@@ -69,7 +69,7 @@ error[E0599]: no method named `closure` found for struct `Obj` in the current sc
69
69
--> $DIR/issue-2392.rs:53:12
70
70
|
71
71
LL | struct Obj<F> where F: FnOnce() -> u32 {
72
- | -------------------------------------- method `closure` not found for this
72
+ | --- method `closure` not found for this struct
73
73
...
74
74
LL | w.wrap.closure();
75
75
| ^^^^^^^ field, not a method
@@ -83,7 +83,7 @@ error[E0599]: no method named `not_closure` found for struct `Obj` in the curren
83
83
--> $DIR/issue-2392.rs:55:12
84
84
|
85
85
LL | struct Obj<F> where F: FnOnce() -> u32 {
86
- | -------------------------------------- method `not_closure` not found for this
86
+ | --- method `not_closure` not found for this struct
87
87
...
88
88
LL | w.wrap.not_closure();
89
89
| ^^^^^^^^^^^-- help: remove the arguments
@@ -94,7 +94,7 @@ error[E0599]: no method named `closure` found for struct `Obj` in the current sc
94
94
--> $DIR/issue-2392.rs:58:24
95
95
|
96
96
LL | struct Obj<F> where F: FnOnce() -> u32 {
97
- | -------------------------------------- method `closure` not found for this
97
+ | --- method `closure` not found for this struct
98
98
...
99
99
LL | check_expression().closure();
100
100
| ^^^^^^^ field, not a method
@@ -108,7 +108,7 @@ error[E0599]: no method named `f1` found for struct `FuncContainer` in the curre
108
108
--> $DIR/issue-2392.rs:64:31
109
109
|
110
110
LL | struct FuncContainer {
111
- | -------------------- method `f1` not found for this
111
+ | ------------- method `f1` not found for this struct
112
112
...
113
113
LL | (*self.container).f1(1);
114
114
| ^^ field, not a method
@@ -122,7 +122,7 @@ error[E0599]: no method named `f2` found for struct `FuncContainer` in the curre
122
122
--> $DIR/issue-2392.rs:65:31
123
123
|
124
124
LL | struct FuncContainer {
125
- | -------------------- method `f2` not found for this
125
+ | ------------- method `f2` not found for this struct
126
126
...
127
127
LL | (*self.container).f2(1);
128
128
| ^^ field, not a method
@@ -136,7 +136,7 @@ error[E0599]: no method named `f3` found for struct `FuncContainer` in the curre
136
136
--> $DIR/issue-2392.rs:66:31
137
137
|
138
138
LL | struct FuncContainer {
139
- | -------------------- method `f3` not found for this
139
+ | ------------- method `f3` not found for this struct
140
140
...
141
141
LL | (*self.container).f3(1);
142
142
| ^^ field, not a method
0 commit comments