@@ -12,22 +12,17 @@ error[E0599]: no method named `method` found for type `u32` in the current scope
12
12
candidate #4: `use no_method_suggested_traits::Reexported;`
13
13
14
14
error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&u32>>` in the current scope
15
- --> $DIR/no-method-suggested-traits.rs:38:44
16
- |
17
- 38 | std::rc::Rc::new(&mut Box::new(&1u32)).method();
18
- | ^^^^^^
19
- |
20
- ::: /checkout/src/liballoc/rc.rs
21
- |
22
- 284 | pub struct Rc<T: ?Sized> {
23
- | ------------------------ method `method` not found for this
24
- |
25
- = help: items from traits can only be used if the trait is in scope
26
- = note: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
27
- candidate #1: `use foo::Bar;`
28
- candidate #2: `use no_method_suggested_traits::foo::PubPub;`
29
- candidate #3: `use no_method_suggested_traits::qux::PrivPub;`
30
- candidate #4: `use no_method_suggested_traits::Reexported;`
15
+ --> $DIR/no-method-suggested-traits.rs:38:44
16
+ |
17
+ 38 | std::rc::Rc::new(&mut Box::new(&1u32)).method();
18
+ | ^^^^^^
19
+ |
20
+ = help: items from traits can only be used if the trait is in scope
21
+ = note: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
22
+ candidate #1: `use foo::Bar;`
23
+ candidate #2: `use no_method_suggested_traits::foo::PubPub;`
24
+ candidate #3: `use no_method_suggested_traits::qux::PrivPub;`
25
+ candidate #4: `use no_method_suggested_traits::Reexported;`
31
26
32
27
error[E0599]: no method named `method` found for type `char` in the current scope
33
28
--> $DIR/no-method-suggested-traits.rs:44:9
@@ -40,19 +35,14 @@ error[E0599]: no method named `method` found for type `char` in the current scop
40
35
candidate #1: `use foo::Bar;`
41
36
42
37
error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&char>>` in the current scope
43
- --> $DIR/no-method-suggested-traits.rs:48:43
44
- |
45
- 48 | std::rc::Rc::new(&mut Box::new(&'a')).method();
46
- | ^^^^^^
47
- |
48
- ::: /checkout/src/liballoc/rc.rs
49
- |
50
- 284 | pub struct Rc<T: ?Sized> {
51
- | ------------------------ method `method` not found for this
52
- |
53
- = help: items from traits can only be used if the trait is in scope
54
- = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
55
- candidate #1: `use foo::Bar;`
38
+ --> $DIR/no-method-suggested-traits.rs:48:43
39
+ |
40
+ 48 | std::rc::Rc::new(&mut Box::new(&'a')).method();
41
+ | ^^^^^^
42
+ |
43
+ = help: items from traits can only be used if the trait is in scope
44
+ = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
45
+ candidate #1: `use foo::Bar;`
56
46
57
47
error[E0599]: no method named `method` found for type `i32` in the current scope
58
48
--> $DIR/no-method-suggested-traits.rs:53:10
@@ -65,18 +55,14 @@ error[E0599]: no method named `method` found for type `i32` in the current scope
65
55
candidate #1: `use no_method_suggested_traits::foo::PubPub;`
66
56
67
57
error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&i32>>` in the current scope
68
- --> $DIR/no-method-suggested-traits.rs:57:44
69
- |
70
- 57 | std::rc::Rc::new(&mut Box::new(&1i32)).method();
71
- |
72
- ::: /checkout/src/liballoc/rc.rs
73
- |
74
- 284 | pub struct Rc<T: ?Sized> {
75
- | ------------------------ method `method` not found for this
76
- |
77
- = help: items from traits can only be used if the trait is in scope
78
- = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
79
- candidate #1: `use no_method_suggested_traits::foo::PubPub;`
58
+ --> $DIR/no-method-suggested-traits.rs:57:44
59
+ |
60
+ 57 | std::rc::Rc::new(&mut Box::new(&1i32)).method();
61
+ | ^^^^^^
62
+ |
63
+ = help: items from traits can only be used if the trait is in scope
64
+ = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
65
+ candidate #1: `use no_method_suggested_traits::foo::PubPub;`
80
66
81
67
error[E0599]: no method named `method` found for type `Foo` in the current scope
82
68
--> $DIR/no-method-suggested-traits.rs:62:9
@@ -97,24 +83,19 @@ error[E0599]: no method named `method` found for type `Foo` in the current scope
97
83
candidate #6: `no_method_suggested_traits::Reexported`
98
84
99
85
error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
100
- --> $DIR/no-method-suggested-traits.rs:71:43
101
- |
102
- 71 | std::rc::Rc::new(&mut Box::new(&Foo)).method();
103
- | ^^^^^^
104
- |
105
- ::: /checkout/src/liballoc/rc.rs
106
- |
107
- 284 | pub struct Rc<T: ?Sized> {
108
- | ------------------------ method `method` not found for this
109
- |
110
- = help: items from traits can only be used if the trait is implemented and in scope
111
- = note: the following traits define an item `method`, perhaps you need to implement one of them:
112
- candidate #1: `foo::Bar`
113
- candidate #2: `no_method_suggested_traits::foo::PubPub`
114
- candidate #3: `no_method_suggested_traits::bar::PubPriv`
115
- candidate #4: `no_method_suggested_traits::qux::PrivPub`
116
- candidate #5: `no_method_suggested_traits::quz::PrivPriv`
117
- candidate #6: `no_method_suggested_traits::Reexported`
86
+ --> $DIR/no-method-suggested-traits.rs:71:43
87
+ |
88
+ 71 | std::rc::Rc::new(&mut Box::new(&Foo)).method();
89
+ | ^^^^^^
90
+ |
91
+ = help: items from traits can only be used if the trait is implemented and in scope
92
+ = note: the following traits define an item `method`, perhaps you need to implement one of them:
93
+ candidate #1: `foo::Bar`
94
+ candidate #2: `no_method_suggested_traits::foo::PubPub`
95
+ candidate #3: `no_method_suggested_traits::bar::PubPriv`
96
+ candidate #4: `no_method_suggested_traits::qux::PrivPub`
97
+ candidate #5: `no_method_suggested_traits::quz::PrivPriv`
98
+ candidate #6: `no_method_suggested_traits::Reexported`
118
99
119
100
error[E0599]: no method named `method2` found for type `u64` in the current scope
120
101
--> $DIR/no-method-suggested-traits.rs:81:10
@@ -127,60 +108,40 @@ error[E0599]: no method named `method2` found for type `u64` in the current scop
127
108
candidate #1: `foo::Bar`
128
109
129
110
error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&u64>>` in the current scope
130
- --> $DIR/no-method-suggested-traits.rs:85:44
131
- |
132
- 85 | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
133
- | ^^^^^^^
134
- |
135
- ::: /checkout/src/liballoc/rc.rs
136
- |
137
- 284 | pub struct Rc<T: ?Sized> {
138
- | ------------------------ method `method2` not found for this
139
- |
140
- = help: items from traits can only be used if the trait is implemented and in scope
141
- = note: the following trait defines an item `method2`, perhaps you need to implement it:
142
- candidate #1: `foo::Bar`
111
+ --> $DIR/no-method-suggested-traits.rs:85:44
112
+ |
113
+ 85 | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
114
+ | ^^^^^^^
115
+ |
116
+ = help: items from traits can only be used if the trait is implemented and in scope
117
+ = note: the following trait defines an item `method2`, perhaps you need to implement it:
118
+ candidate #1: `foo::Bar`
143
119
144
120
error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Foo` in the current scope
145
121
--> $DIR/no-method-suggested-traits.rs:90:37
146
122
|
147
123
90 | no_method_suggested_traits::Foo.method2();
148
124
| ^^^^^^^
149
- |
150
- ::: $DIR/auxiliary/no_method_suggested_traits.rs
151
- |
152
- 13 | pub struct Foo;
153
- | --------------- method `method2` not found for this
154
125
|
155
126
= help: items from traits can only be used if the trait is implemented and in scope
156
127
= note: the following trait defines an item `method2`, perhaps you need to implement it:
157
128
candidate #1: `foo::Bar`
158
129
159
130
error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Foo>>` in the current scope
160
- --> $DIR/no-method-suggested-traits.rs:94:71
161
- |
162
- 94 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
163
- | ^^^^^^^
164
- |
165
- ::: /checkout/src/liballoc/rc.rs
166
- |
167
- 284 | pub struct Rc<T: ?Sized> {
168
- | ------------------------ method `method2` not found for this
169
- |
170
- = help: items from traits can only be used if the trait is implemented and in scope
171
- = note: the following trait defines an item `method2`, perhaps you need to implement it:
172
- candidate #1: `foo::Bar`
131
+ --> $DIR/no-method-suggested-traits.rs:94:71
132
+ |
133
+ 94 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
134
+ | ^^^^^^^
135
+ |
136
+ = help: items from traits can only be used if the trait is implemented and in scope
137
+ = note: the following trait defines an item `method2`, perhaps you need to implement it:
138
+ candidate #1: `foo::Bar`
173
139
174
140
error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Bar` in the current scope
175
141
--> $DIR/no-method-suggested-traits.rs:98:40
176
142
|
177
143
98 | no_method_suggested_traits::Bar::X.method2();
178
144
| ^^^^^^^
179
- |
180
- ::: $DIR/auxiliary/no_method_suggested_traits.rs
181
- |
182
- 14 | pub enum Bar { X }
183
- | ------------ method `method2` not found here
184
145
|
185
146
= help: items from traits can only be used if the trait is implemented and in scope
186
147
= note: the following trait defines an item `method2`, perhaps you need to implement it:
@@ -191,11 +152,6 @@ error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::bo
191
152
|
192
153
102 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
193
154
| ^^^^^^^
194
- |
195
- ::: /checkout/src/liballoc/rc.rs
196
- |
197
- 284 | pub struct Rc<T: ?Sized> {
198
- | ------------------------ method `method2` not found for this
199
155
|
200
156
= help: items from traits can only be used if the trait is implemented and in scope
201
157
= note: the following trait defines an item `method2`, perhaps you need to implement it:
@@ -219,11 +175,6 @@ error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::bo
219
175
|
220
176
111 | std::rc::Rc::new(&mut Box::new(&Foo)).method3();
221
177
| ^^^^^^^
222
- |
223
- ::: /checkout/src/liballoc/rc.rs
224
- |
225
- 284 | pub struct Rc<T: ?Sized> {
226
- | ------------------------ method `method3` not found for this
227
178
|
228
179
= help: items from traits can only be used if the trait is implemented and in scope
229
180
= note: the following trait defines an item `method3`, perhaps you need to implement it:
@@ -233,7 +184,7 @@ error[E0599]: no method named `method3` found for type `Bar` in the current scop
233
184
--> $DIR/no-method-suggested-traits.rs:115:12
234
185
|
235
186
15 | enum Bar { X }
236
- | -------- method `method3` not found here
187
+ | -------- method `method3` not found for this
237
188
...
238
189
115 | Bar::X.method3();
239
190
| ^^^^^^^
@@ -247,11 +198,6 @@ error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::bo
247
198
|
248
199
119 | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3();
249
200
| ^^^^^^^
250
- |
251
- ::: /checkout/src/liballoc/rc.rs
252
- |
253
- 284 | pub struct Rc<T: ?Sized> {
254
- | ------------------------ method `method3` not found for this
255
201
|
256
202
= help: items from traits can only be used if the trait is implemented and in scope
257
203
= note: the following trait defines an item `method3`, perhaps you need to implement it:
@@ -268,55 +214,30 @@ error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::bo
268
214
|
269
215
126 | std::rc::Rc::new(&mut Box::new(&1_usize)).method3(); //~ ERROR no method named
270
216
| ^^^^^^^
271
- |
272
- ::: /checkout/src/liballoc/rc.rs
273
- |
274
- 284 | pub struct Rc<T: ?Sized> {
275
- | ------------------------ method `method3` not found for this
276
217
277
218
error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Foo` in the current scope
278
219
--> $DIR/no-method-suggested-traits.rs:127:37
279
220
|
280
221
127 | no_method_suggested_traits::Foo.method3(); //~ ERROR no method named
281
222
| ^^^^^^^
282
- |
283
- ::: $DIR/auxiliary/no_method_suggested_traits.rs
284
- |
285
- 13 | pub struct Foo;
286
- | --------------- method `method3` not found for this
287
223
288
224
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
289
225
--> $DIR/no-method-suggested-traits.rs:128:71
290
226
|
291
227
128 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3();
292
228
| ^^^^^^^
293
- |
294
- ::: /checkout/src/liballoc/rc.rs
295
- |
296
- 284 | pub struct Rc<T: ?Sized> {
297
- | ------------------------ method `method3` not found for this
298
229
299
230
error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Bar` in the current scope
300
231
--> $DIR/no-method-suggested-traits.rs:130:40
301
232
|
302
233
130 | no_method_suggested_traits::Bar::X.method3(); //~ ERROR no method named
303
234
| ^^^^^^^
304
- |
305
- ::: $DIR/auxiliary/no_method_suggested_traits.rs
306
- |
307
- 14 | pub enum Bar { X }
308
- | ------------ method `method3` not found here
309
235
310
236
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
311
237
--> $DIR/no-method-suggested-traits.rs:131:74
312
238
|
313
239
131 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3();
314
240
| ^^^^^^^
315
- |
316
- ::: /checkout/src/liballoc/rc.rs
317
- |
318
- 284 | pub struct Rc<T: ?Sized> {
319
- | ------------------------ method `method3` not found for this
320
241
321
242
error: aborting due to 24 previous errors
322
243
0 commit comments