@@ -2,7 +2,7 @@ error[E0599]: no method named `method` found for type `u32` in the current scope
2
2
--> $DIR/no-method-suggested-traits.rs:23:10
3
3
|
4
4
LL | 1u32.method();
5
- | ^^^^^^
5
+ | ^^^^^^ method not found in `u32`
6
6
|
7
7
= help: items from traits can only be used if the trait is in scope
8
8
help: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
@@ -20,7 +20,7 @@ error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::box
20
20
--> $DIR/no-method-suggested-traits.rs:26:44
21
21
|
22
22
LL | std::rc::Rc::new(&mut Box::new(&1u32)).method();
23
- | ^^^^^^
23
+ | ^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&u32>>`
24
24
|
25
25
= help: items from traits can only be used if the trait is in scope
26
26
help: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
@@ -38,7 +38,7 @@ error[E0599]: no method named `method` found for type `char` in the current scop
38
38
--> $DIR/no-method-suggested-traits.rs:30:9
39
39
|
40
40
LL | 'a'.method();
41
- | ^^^^^^
41
+ | ^^^^^^ method not found in `char`
42
42
|
43
43
= help: items from traits can only be used if the trait is in scope
44
44
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
@@ -58,7 +58,7 @@ LL | fn method(&self) {}
58
58
| the method is available for `std::rc::Rc<std::rc::Rc<&mut std::boxed::Box<&char>>>` here
59
59
...
60
60
LL | std::rc::Rc::new(&mut Box::new(&'a')).method();
61
- | ^^^^^^
61
+ | ^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&char>>`
62
62
|
63
63
= help: items from traits can only be used if the trait is in scope
64
64
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
@@ -70,7 +70,7 @@ error[E0599]: no method named `method` found for type `i32` in the current scope
70
70
--> $DIR/no-method-suggested-traits.rs:35:10
71
71
|
72
72
LL | 1i32.method();
73
- | ^^^^^^
73
+ | ^^^^^^ method not found in `i32`
74
74
|
75
75
= help: items from traits can only be used if the trait is in scope
76
76
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
@@ -82,7 +82,7 @@ error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::box
82
82
--> $DIR/no-method-suggested-traits.rs:37:44
83
83
|
84
84
LL | std::rc::Rc::new(&mut Box::new(&1i32)).method();
85
- | ^^^^^^
85
+ | ^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&i32>>`
86
86
|
87
87
= help: items from traits can only be used if the trait is in scope
88
88
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
@@ -97,7 +97,7 @@ LL | struct Foo;
97
97
| ----------- method `method` not found for this
98
98
...
99
99
LL | Foo.method();
100
- | ^^^^^^
100
+ | ^^^^^^ method not found in `Foo`
101
101
|
102
102
= help: items from traits can only be used if the trait is implemented and in scope
103
103
= note: the following traits define an item `method`, perhaps you need to implement one of them:
@@ -110,7 +110,7 @@ error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::box
110
110
--> $DIR/no-method-suggested-traits.rs:42:43
111
111
|
112
112
LL | std::rc::Rc::new(&mut Box::new(&Foo)).method();
113
- | ^^^^^^
113
+ | ^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&Foo>>`
114
114
|
115
115
= help: items from traits can only be used if the trait is implemented and in scope
116
116
= note: the following traits define an item `method`, perhaps you need to implement one of them:
@@ -123,7 +123,7 @@ error[E0599]: no method named `method2` found for type `u64` in the current scop
123
123
--> $DIR/no-method-suggested-traits.rs:45:10
124
124
|
125
125
LL | 1u64.method2();
126
- | ^^^^^^^
126
+ | ^^^^^^^ method not found in `u64`
127
127
|
128
128
= help: items from traits can only be used if the trait is implemented and in scope
129
129
= note: the following trait defines an item `method2`, perhaps you need to implement it:
@@ -133,7 +133,7 @@ error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::bo
133
133
--> $DIR/no-method-suggested-traits.rs:47:44
134
134
|
135
135
LL | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
136
- | ^^^^^^^
136
+ | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&u64>>`
137
137
|
138
138
= help: items from traits can only be used if the trait is implemented and in scope
139
139
= note: the following trait defines an item `method2`, perhaps you need to implement it:
@@ -143,7 +143,7 @@ error[E0599]: no method named `method2` found for type `no_method_suggested_trai
143
143
--> $DIR/no-method-suggested-traits.rs:50:37
144
144
|
145
145
LL | no_method_suggested_traits::Foo.method2();
146
- | ^^^^^^^
146
+ | ^^^^^^^ method not found in `no_method_suggested_traits::Foo`
147
147
|
148
148
= help: items from traits can only be used if the trait is implemented and in scope
149
149
= note: the following trait defines an item `method2`, perhaps you need to implement it:
@@ -153,7 +153,7 @@ error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::bo
153
153
--> $DIR/no-method-suggested-traits.rs:52:71
154
154
|
155
155
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
156
- | ^^^^^^^
156
+ | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Foo>>`
157
157
|
158
158
= help: items from traits can only be used if the trait is implemented and in scope
159
159
= note: the following trait defines an item `method2`, perhaps you need to implement it:
@@ -163,7 +163,7 @@ error[E0599]: no method named `method2` found for type `no_method_suggested_trai
163
163
--> $DIR/no-method-suggested-traits.rs:54:40
164
164
|
165
165
LL | no_method_suggested_traits::Bar::X.method2();
166
- | ^^^^^^^
166
+ | ^^^^^^^ method not found in `no_method_suggested_traits::Bar`
167
167
|
168
168
= help: items from traits can only be used if the trait is implemented and in scope
169
169
= note: the following trait defines an item `method2`, perhaps you need to implement it:
@@ -173,7 +173,7 @@ error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::bo
173
173
--> $DIR/no-method-suggested-traits.rs:56:74
174
174
|
175
175
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
176
- | ^^^^^^^
176
+ | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>`
177
177
|
178
178
= help: items from traits can only be used if the trait is implemented and in scope
179
179
= note: the following trait defines an item `method2`, perhaps you need to implement it:
@@ -186,7 +186,7 @@ LL | struct Foo;
186
186
| ----------- method `method3` not found for this
187
187
...
188
188
LL | Foo.method3();
189
- | ^^^^^^^
189
+ | ^^^^^^^ method not found in `Foo`
190
190
|
191
191
= help: items from traits can only be used if the trait is implemented and in scope
192
192
= note: the following trait defines an item `method3`, perhaps you need to implement it:
@@ -196,7 +196,7 @@ error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::bo
196
196
--> $DIR/no-method-suggested-traits.rs:61:43
197
197
|
198
198
LL | std::rc::Rc::new(&mut Box::new(&Foo)).method3();
199
- | ^^^^^^^
199
+ | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&Foo>>`
200
200
|
201
201
= help: items from traits can only be used if the trait is implemented and in scope
202
202
= note: the following trait defines an item `method3`, perhaps you need to implement it:
@@ -209,7 +209,7 @@ LL | enum Bar { X }
209
209
| -------- method `method3` not found for this
210
210
...
211
211
LL | Bar::X.method3();
212
- | ^^^^^^^
212
+ | ^^^^^^^ method not found in `Bar`
213
213
|
214
214
= help: items from traits can only be used if the trait is implemented and in scope
215
215
= note: the following trait defines an item `method3`, perhaps you need to implement it:
@@ -219,7 +219,7 @@ error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::bo
219
219
--> $DIR/no-method-suggested-traits.rs:65:46
220
220
|
221
221
LL | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3();
222
- | ^^^^^^^
222
+ | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&Bar>>`
223
223
|
224
224
= help: items from traits can only be used if the trait is implemented and in scope
225
225
= note: the following trait defines an item `method3`, perhaps you need to implement it:
@@ -229,37 +229,37 @@ error[E0599]: no method named `method3` found for type `usize` in the current sc
229
229
--> $DIR/no-method-suggested-traits.rs:69:13
230
230
|
231
231
LL | 1_usize.method3();
232
- | ^^^^^^^
232
+ | ^^^^^^^ method not found in `usize`
233
233
234
234
error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&usize>>` in the current scope
235
235
--> $DIR/no-method-suggested-traits.rs:70:47
236
236
|
237
237
LL | std::rc::Rc::new(&mut Box::new(&1_usize)).method3();
238
- | ^^^^^^^
238
+ | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&usize>>`
239
239
240
240
error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Foo` in the current scope
241
241
--> $DIR/no-method-suggested-traits.rs:71:37
242
242
|
243
243
LL | no_method_suggested_traits::Foo.method3();
244
- | ^^^^^^^
244
+ | ^^^^^^^ method not found in `no_method_suggested_traits::Foo`
245
245
246
246
error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Foo>>` in the current scope
247
247
--> $DIR/no-method-suggested-traits.rs:72:71
248
248
|
249
249
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3();
250
- | ^^^^^^^
250
+ | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Foo>>`
251
251
252
252
error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Bar` in the current scope
253
253
--> $DIR/no-method-suggested-traits.rs:74:40
254
254
|
255
255
LL | no_method_suggested_traits::Bar::X.method3();
256
- | ^^^^^^^
256
+ | ^^^^^^^ method not found in `no_method_suggested_traits::Bar`
257
257
258
258
error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>` in the current scope
259
259
--> $DIR/no-method-suggested-traits.rs:75:74
260
260
|
261
261
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3();
262
- | ^^^^^^^
262
+ | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>`
263
263
264
264
error: aborting due to 24 previous errors
265
265
0 commit comments