@@ -16,7 +16,7 @@ LL | use no_method_suggested_traits::qux::PrivPub;
16
16
LL | use no_method_suggested_traits::Reexported;
17
17
|
18
18
19
- error[E0599]: no method named `method` found for struct `Rc` in the current scope
19
+ error[E0599]: no method named `method` found for struct `Rc<&mut Box<&u32>> ` in the current scope
20
20
--> $DIR/no-method-suggested-traits.rs:26:44
21
21
|
22
22
LL | std::rc::Rc::new(&mut Box::new(&1u32)).method();
@@ -46,7 +46,7 @@ help: the following trait is implemented but not in scope; perhaps add a `use` f
46
46
LL | use foo::Bar;
47
47
|
48
48
49
- error[E0599]: no method named `method` found for struct `Rc` in the current scope
49
+ error[E0599]: no method named `method` found for struct `Rc<&mut Box<&char>> ` in the current scope
50
50
--> $DIR/no-method-suggested-traits.rs:32:43
51
51
|
52
52
LL | std::rc::Rc::new(&mut Box::new(&'a')).method();
@@ -70,7 +70,7 @@ help: the following trait is implemented but not in scope; perhaps add a `use` f
70
70
LL | use no_method_suggested_traits::foo::PubPub;
71
71
|
72
72
73
- error[E0599]: no method named `method` found for struct `Rc` in the current scope
73
+ error[E0599]: no method named `method` found for struct `Rc<&mut Box<&i32>> ` in the current scope
74
74
--> $DIR/no-method-suggested-traits.rs:37:44
75
75
|
76
76
LL | std::rc::Rc::new(&mut Box::new(&1i32)).method();
@@ -98,7 +98,7 @@ LL | Foo.method();
98
98
candidate #3: `no_method_suggested_traits::qux::PrivPub`
99
99
candidate #4: `Reexported`
100
100
101
- error[E0599]: no method named `method` found for struct `Rc` in the current scope
101
+ error[E0599]: no method named `method` found for struct `Rc<&mut Box<&Foo>> ` in the current scope
102
102
--> $DIR/no-method-suggested-traits.rs:42:43
103
103
|
104
104
LL | std::rc::Rc::new(&mut Box::new(&Foo)).method();
@@ -124,7 +124,7 @@ note: `foo::Bar` defines an item `method2`, perhaps you need to implement it
124
124
LL | pub trait Bar {
125
125
| ^^^^^^^^^^^^^
126
126
127
- error[E0599]: no method named `method2` found for struct `Rc` in the current scope
127
+ error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&u64>> ` in the current scope
128
128
--> $DIR/no-method-suggested-traits.rs:47:44
129
129
|
130
130
LL | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
@@ -150,7 +150,7 @@ note: `foo::Bar` defines an item `method2`, perhaps you need to implement it
150
150
LL | pub trait Bar {
151
151
| ^^^^^^^^^^^^^
152
152
153
- error[E0599]: no method named `method2` found for struct `Rc` in the current scope
153
+ error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&no_method_suggested_traits::Foo>> ` in the current scope
154
154
--> $DIR/no-method-suggested-traits.rs:52:71
155
155
|
156
156
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
@@ -176,7 +176,7 @@ note: `foo::Bar` defines an item `method2`, perhaps you need to implement it
176
176
LL | pub trait Bar {
177
177
| ^^^^^^^^^^^^^
178
178
179
- error[E0599]: no method named `method2` found for struct `Rc` in the current scope
179
+ error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&no_method_suggested_traits::Bar>> ` in the current scope
180
180
--> $DIR/no-method-suggested-traits.rs:56:74
181
181
|
182
182
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
@@ -202,7 +202,7 @@ LL | Foo.method3();
202
202
= note: the following trait defines an item `method3`, perhaps you need to implement it:
203
203
candidate #1: `PubPub`
204
204
205
- error[E0599]: no method named `method3` found for struct `Rc` in the current scope
205
+ error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&Foo>> ` in the current scope
206
206
--> $DIR/no-method-suggested-traits.rs:61:43
207
207
|
208
208
LL | std::rc::Rc::new(&mut Box::new(&Foo)).method3();
@@ -225,7 +225,7 @@ LL | Bar::X.method3();
225
225
= note: the following trait defines an item `method3`, perhaps you need to implement it:
226
226
candidate #1: `PubPub`
227
227
228
- error[E0599]: no method named `method3` found for struct `Rc` in the current scope
228
+ error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&Bar>> ` in the current scope
229
229
--> $DIR/no-method-suggested-traits.rs:65:46
230
230
|
231
231
LL | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3();
@@ -241,7 +241,7 @@ error[E0599]: no method named `method3` found for type `usize` in the current sc
241
241
LL | 1_usize.method3();
242
242
| ^^^^^^^ method not found in `usize`
243
243
244
- error[E0599]: no method named `method3` found for struct `Rc` in the current scope
244
+ error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&usize>> ` in the current scope
245
245
--> $DIR/no-method-suggested-traits.rs:70:47
246
246
|
247
247
LL | std::rc::Rc::new(&mut Box::new(&1_usize)).method3();
@@ -253,7 +253,7 @@ error[E0599]: no method named `method3` found for struct `no_method_suggested_tr
253
253
LL | no_method_suggested_traits::Foo.method3();
254
254
| ^^^^^^^ method not found in `no_method_suggested_traits::Foo`
255
255
256
- error[E0599]: no method named `method3` found for struct `Rc` in the current scope
256
+ error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&no_method_suggested_traits::Foo>> ` in the current scope
257
257
--> $DIR/no-method-suggested-traits.rs:72:71
258
258
|
259
259
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3();
@@ -265,7 +265,7 @@ error[E0599]: no method named `method3` found for enum `no_method_suggested_trai
265
265
LL | no_method_suggested_traits::Bar::X.method3();
266
266
| ^^^^^^^ method not found in `no_method_suggested_traits::Bar`
267
267
268
- error[E0599]: no method named `method3` found for struct `Rc` in the current scope
268
+ error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&no_method_suggested_traits::Bar>> ` in the current scope
269
269
--> $DIR/no-method-suggested-traits.rs:75:74
270
270
|
271
271
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3();
0 commit comments