1 error[E0599]: no method named `method` found for type `u32` in the current scope
2 --> $DIR/no-method-suggested-traits.rs:23:10
7 = help: items from traits can only be used if the trait is in scope
8 help: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
12 LL | use no_method_suggested_traits::foo::PubPub;
14 LL | use no_method_suggested_traits::qux::PrivPub;
16 LL | use no_method_suggested_traits::Reexported;
19 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&u32>>` in the current scope
20 --> $DIR/no-method-suggested-traits.rs:26:44
22 LL | std::rc::Rc::new(&mut Box::new(&1u32)).method();
25 = help: items from traits can only be used if the trait is in scope
26 help: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
30 LL | use no_method_suggested_traits::foo::PubPub;
32 LL | use no_method_suggested_traits::qux::PrivPub;
34 LL | use no_method_suggested_traits::Reexported;
37 error[E0599]: no method named `method` found for type `char` in the current scope
38 --> $DIR/no-method-suggested-traits.rs:30:9
43 = help: items from traits can only be used if the trait is in scope
44 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
49 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&char>>` in the current scope
50 --> $DIR/no-method-suggested-traits.rs:32:43
52 LL | fn method(&self) {}
55 | the method is available for `std::boxed::Box<std::rc::Rc<&mut std::boxed::Box<&char>>>` here
56 | the method is available for `std::pin::Pin<std::rc::Rc<&mut std::boxed::Box<&char>>>` here
57 | the method is available for `std::sync::Arc<std::rc::Rc<&mut std::boxed::Box<&char>>>` here
58 | the method is available for `std::rc::Rc<std::rc::Rc<&mut std::boxed::Box<&char>>>` here
60 LL | std::rc::Rc::new(&mut Box::new(&'a')).method();
63 = help: items from traits can only be used if the trait is in scope
64 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
69 error[E0599]: no method named `method` found for type `i32` in the current scope
70 --> $DIR/no-method-suggested-traits.rs:35:10
75 = help: items from traits can only be used if the trait is in scope
76 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
78 LL | use no_method_suggested_traits::foo::PubPub;
81 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&i32>>` in the current scope
82 --> $DIR/no-method-suggested-traits.rs:37:44
84 LL | std::rc::Rc::new(&mut Box::new(&1i32)).method();
87 = help: items from traits can only be used if the trait is in scope
88 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
90 LL | use no_method_suggested_traits::foo::PubPub;
93 error[E0599]: no method named `method` found for type `Foo` in the current scope
94 --> $DIR/no-method-suggested-traits.rs:40:9
97 | ----------- method `method` not found for this
102 = help: items from traits can only be used if the trait is implemented and in scope
103 = note: the following traits define an item `method`, perhaps you need to implement one of them:
104 candidate #1: `foo::Bar`
105 candidate #2: `no_method_suggested_traits::foo::PubPub`
106 candidate #3: `no_method_suggested_traits::qux::PrivPub`
107 candidate #4: `no_method_suggested_traits::Reexported`
109 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
110 --> $DIR/no-method-suggested-traits.rs:42:43
112 LL | std::rc::Rc::new(&mut Box::new(&Foo)).method();
115 = help: items from traits can only be used if the trait is implemented and in scope
116 = note: the following traits define an item `method`, perhaps you need to implement one of them:
117 candidate #1: `foo::Bar`
118 candidate #2: `no_method_suggested_traits::foo::PubPub`
119 candidate #3: `no_method_suggested_traits::qux::PrivPub`
120 candidate #4: `no_method_suggested_traits::Reexported`
122 error[E0599]: no method named `method2` found for type `u64` in the current scope
123 --> $DIR/no-method-suggested-traits.rs:45:10
128 = help: items from traits can only be used if the trait is implemented and in scope
129 = note: the following trait defines an item `method2`, perhaps you need to implement it:
130 candidate #1: `foo::Bar`
132 error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&u64>>` in the current scope
133 --> $DIR/no-method-suggested-traits.rs:47:44
135 LL | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
138 = help: items from traits can only be used if the trait is implemented and in scope
139 = note: the following trait defines an item `method2`, perhaps you need to implement it:
140 candidate #1: `foo::Bar`
142 error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Foo` in the current scope
143 --> $DIR/no-method-suggested-traits.rs:50:37
145 LL | no_method_suggested_traits::Foo.method2();
148 = help: items from traits can only be used if the trait is implemented and in scope
149 = note: the following trait defines an item `method2`, perhaps you need to implement it:
150 candidate #1: `foo::Bar`
152 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
153 --> $DIR/no-method-suggested-traits.rs:52:71
155 LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
158 = help: items from traits can only be used if the trait is implemented and in scope
159 = note: the following trait defines an item `method2`, perhaps you need to implement it:
160 candidate #1: `foo::Bar`
162 error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Bar` in the current scope
163 --> $DIR/no-method-suggested-traits.rs:54:40
165 LL | no_method_suggested_traits::Bar::X.method2();
168 = help: items from traits can only be used if the trait is implemented and in scope
169 = note: the following trait defines an item `method2`, perhaps you need to implement it:
170 candidate #1: `foo::Bar`
172 error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>` in the current scope
173 --> $DIR/no-method-suggested-traits.rs:56:74
175 LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
178 = help: items from traits can only be used if the trait is implemented and in scope
179 = note: the following trait defines an item `method2`, perhaps you need to implement it:
180 candidate #1: `foo::Bar`
182 error[E0599]: no method named `method3` found for type `Foo` in the current scope
183 --> $DIR/no-method-suggested-traits.rs:59:9
186 | ----------- method `method3` not found for this
191 = help: items from traits can only be used if the trait is implemented and in scope
192 = note: the following trait defines an item `method3`, perhaps you need to implement it:
193 candidate #1: `no_method_suggested_traits::foo::PubPub`
195 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
196 --> $DIR/no-method-suggested-traits.rs:61:43
198 LL | std::rc::Rc::new(&mut Box::new(&Foo)).method3();
201 = help: items from traits can only be used if the trait is implemented and in scope
202 = note: the following trait defines an item `method3`, perhaps you need to implement it:
203 candidate #1: `no_method_suggested_traits::foo::PubPub`
205 error[E0599]: no method named `method3` found for type `Bar` in the current scope
206 --> $DIR/no-method-suggested-traits.rs:63:12
209 | -------- method `method3` not found for this
211 LL | Bar::X.method3();
214 = help: items from traits can only be used if the trait is implemented and in scope
215 = note: the following trait defines an item `method3`, perhaps you need to implement it:
216 candidate #1: `no_method_suggested_traits::foo::PubPub`
218 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&Bar>>` in the current scope
219 --> $DIR/no-method-suggested-traits.rs:65:46
221 LL | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3();
224 = help: items from traits can only be used if the trait is implemented and in scope
225 = note: the following trait defines an item `method3`, perhaps you need to implement it:
226 candidate #1: `no_method_suggested_traits::foo::PubPub`
228 error[E0599]: no method named `method3` found for type `usize` in the current scope
229 --> $DIR/no-method-suggested-traits.rs:69:13
231 LL | 1_usize.method3();
234 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&usize>>` in the current scope
235 --> $DIR/no-method-suggested-traits.rs:70:47
237 LL | std::rc::Rc::new(&mut Box::new(&1_usize)).method3();
240 error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Foo` in the current scope
241 --> $DIR/no-method-suggested-traits.rs:71:37
243 LL | no_method_suggested_traits::Foo.method3();
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 --> $DIR/no-method-suggested-traits.rs:72:71
249 LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3();
252 error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Bar` in the current scope
253 --> $DIR/no-method-suggested-traits.rs:74:40
255 LL | no_method_suggested_traits::Bar::X.method3();
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 --> $DIR/no-method-suggested-traits.rs:75:74
261 LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3();
264 error: aborting due to 24 previous errors
266 For more information about this error, try `rustc --explain E0599`.