@@ -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 | pub trait Bar {
126
- | ------------- `foo::Bar` defines an item `method2`
126
+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
127
127
...
128
128
LL | 1u64.method2();
129
129
| ^^^^^^^ method not found in `u64`
@@ -134,7 +134,7 @@ error[E0599]: no method named `method2` found for struct `std::rc::Rc<&mut std::
134
134
--> $DIR/no-method-suggested-traits.rs:47:44
135
135
|
136
136
LL | pub trait Bar {
137
- | ------------- `foo::Bar` defines an item `method2`
137
+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
138
138
...
139
139
LL | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
140
140
| ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&u64>>`
@@ -145,7 +145,7 @@ error[E0599]: no method named `method2` found for struct `no_method_suggested_tr
145
145
--> $DIR/no-method-suggested-traits.rs:50:37
146
146
|
147
147
LL | pub trait Bar {
148
- | ------------- `foo::Bar` defines an item `method2`
148
+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
149
149
...
150
150
LL | no_method_suggested_traits::Foo.method2();
151
151
| ^^^^^^^ method not found in `no_method_suggested_traits::Foo`
@@ -156,7 +156,7 @@ error[E0599]: no method named `method2` found for struct `std::rc::Rc<&mut std::
156
156
--> $DIR/no-method-suggested-traits.rs:52:71
157
157
|
158
158
LL | pub trait Bar {
159
- | ------------- `foo::Bar` defines an item `method2`
159
+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
160
160
...
161
161
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
162
162
| ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Foo>>`
@@ -167,7 +167,7 @@ error[E0599]: no method named `method2` found for enum `no_method_suggested_trai
167
167
--> $DIR/no-method-suggested-traits.rs:54:40
168
168
|
169
169
LL | pub trait Bar {
170
- | ------------- `foo::Bar` defines an item `method2`
170
+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
171
171
...
172
172
LL | no_method_suggested_traits::Bar::X.method2();
173
173
| ^^^^^^^ method not found in `no_method_suggested_traits::Bar`
@@ -178,7 +178,7 @@ error[E0599]: no method named `method2` found for struct `std::rc::Rc<&mut std::
178
178
--> $DIR/no-method-suggested-traits.rs:56:74
179
179
|
180
180
LL | pub trait Bar {
181
- | ------------- `foo::Bar` defines an item `method2`
181
+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
182
182
...
183
183
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
184
184
| ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>`
0 commit comments