@@ -123,7 +123,7 @@ error[E0599]: no method named `method2` found for type `u64` in the current scop
123123 --> $DIR/no-method-suggested-traits.rs:45:10
124124 |
125125LL | pub trait Bar {
126- | ------------- `foo::Bar` defines an item `method2`
126+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
127127...
128128LL | 1u64.method2();
129129 | ^^^^^^^ method not found in `u64`
@@ -134,7 +134,7 @@ error[E0599]: no method named `method2` found for struct `std::rc::Rc<&mut std::
134134 --> $DIR/no-method-suggested-traits.rs:47:44
135135 |
136136LL | pub trait Bar {
137- | ------------- `foo::Bar` defines an item `method2`
137+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
138138...
139139LL | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
140140 | ^^^^^^^ 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
145145 --> $DIR/no-method-suggested-traits.rs:50:37
146146 |
147147LL | pub trait Bar {
148- | ------------- `foo::Bar` defines an item `method2`
148+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
149149...
150150LL | no_method_suggested_traits::Foo.method2();
151151 | ^^^^^^^ 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::
156156 --> $DIR/no-method-suggested-traits.rs:52:71
157157 |
158158LL | pub trait Bar {
159- | ------------- `foo::Bar` defines an item `method2`
159+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
160160...
161161LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
162162 | ^^^^^^^ 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
167167 --> $DIR/no-method-suggested-traits.rs:54:40
168168 |
169169LL | pub trait Bar {
170- | ------------- `foo::Bar` defines an item `method2`
170+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
171171...
172172LL | no_method_suggested_traits::Bar::X.method2();
173173 | ^^^^^^^ 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::
178178 --> $DIR/no-method-suggested-traits.rs:56:74
179179 |
180180LL | pub trait Bar {
181- | ------------- `foo::Bar` defines an item `method2`
181+ | ------------- `foo::Bar` defines an item `method2`, perhaps you need to implement it
182182...
183183LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
184184 | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>`
0 commit comments