1 error[E0599]: no method named `method` found for type `u32` in the current scope
2 --> $DIR/no-method-suggested-traits.rs:33:10
7 = help: items from traits can only be used if the trait is in scope
8 = note: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
9 candidate #1: `use foo::Bar;`
10 candidate #2: `use no_method_suggested_traits::foo::PubPub;`
12 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&u32>>` in the current scope
13 --> $DIR/no-method-suggested-traits.rs:38:44
15 38 | std::rc::Rc::new(&mut Box::new(&1u32)).method();
18 = help: items from traits can only be used if the trait is in scope
19 = note: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
20 candidate #1: `use foo::Bar;`
21 candidate #2: `use no_method_suggested_traits::foo::PubPub;`
23 error[E0599]: no method named `method` found for type `char` in the current scope
24 --> $DIR/no-method-suggested-traits.rs:44:9
29 = help: items from traits can only be used if the trait is in scope
30 = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
31 candidate #1: `use foo::Bar;`
33 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&char>>` in the current scope
34 --> $DIR/no-method-suggested-traits.rs:48:43
36 48 | std::rc::Rc::new(&mut Box::new(&'a')).method();
39 = help: items from traits can only be used if the trait is in scope
40 = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
41 candidate #1: `use foo::Bar;`
43 error[E0599]: no method named `method` found for type `i32` in the current scope
44 --> $DIR/no-method-suggested-traits.rs:53:10
49 = help: items from traits can only be used if the trait is in scope
50 = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
51 candidate #1: `use no_method_suggested_traits::foo::PubPub;`
53 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&i32>>` in the current scope
54 --> $DIR/no-method-suggested-traits.rs:57:44
56 57 | std::rc::Rc::new(&mut Box::new(&1i32)).method();
59 = help: items from traits can only be used if the trait is in scope
60 = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
61 candidate #1: `use no_method_suggested_traits::foo::PubPub;`
63 error[E0599]: no method named `method` found for type `Foo` in the current scope
64 --> $DIR/no-method-suggested-traits.rs:62:9
69 = help: items from traits can only be used if the trait is implemented and in scope
70 = note: the following traits define an item `method`, perhaps you need to implement one of them:
71 candidate #1: `foo::Bar`
72 candidate #2: `no_method_suggested_traits::foo::PubPub`
73 candidate #3: `no_method_suggested_traits::bar::PubPriv`
74 candidate #4: `no_method_suggested_traits::qux::PrivPub`
75 candidate #5: `no_method_suggested_traits::quz::PrivPriv`
76 candidate #6: `no_method_suggested_traits::Reexported`
78 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
79 --> $DIR/no-method-suggested-traits.rs:71:43
81 71 | std::rc::Rc::new(&mut Box::new(&Foo)).method();
84 = help: items from traits can only be used if the trait is implemented and in scope
85 = note: the following traits define an item `method`, perhaps you need to implement one of them:
86 candidate #1: `foo::Bar`
87 candidate #2: `no_method_suggested_traits::foo::PubPub`
88 candidate #3: `no_method_suggested_traits::bar::PubPriv`
89 candidate #4: `no_method_suggested_traits::qux::PrivPub`
90 candidate #5: `no_method_suggested_traits::quz::PrivPriv`
91 candidate #6: `no_method_suggested_traits::Reexported`
93 error[E0599]: no method named `method2` found for type `u64` in the current scope
94 --> $DIR/no-method-suggested-traits.rs:81:10
99 = help: items from traits can only be used if the trait is implemented and in scope
100 = note: the following trait defines an item `method2`, perhaps you need to implement it:
101 candidate #1: `foo::Bar`
103 error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&u64>>` in the current scope
104 --> $DIR/no-method-suggested-traits.rs:85:44
106 85 | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
109 = help: items from traits can only be used if the trait is implemented and in scope
110 = note: the following trait defines an item `method2`, perhaps you need to implement it:
111 candidate #1: `foo::Bar`
113 error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Foo` in the current scope
114 --> $DIR/no-method-suggested-traits.rs:90:37
116 90 | no_method_suggested_traits::Foo.method2();
119 = help: items from traits can only be used if the trait is implemented and in scope
120 = note: the following trait defines an item `method2`, perhaps you need to implement it:
121 candidate #1: `foo::Bar`
123 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
124 --> $DIR/no-method-suggested-traits.rs:94:71
126 94 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
129 = help: items from traits can only be used if the trait is implemented and in scope
130 = note: the following trait defines an item `method2`, perhaps you need to implement it:
131 candidate #1: `foo::Bar`
133 error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Bar` in the current scope
134 --> $DIR/no-method-suggested-traits.rs:98:40
136 98 | no_method_suggested_traits::Bar::X.method2();
139 = help: items from traits can only be used if the trait is implemented and in scope
140 = note: the following trait defines an item `method2`, perhaps you need to implement it:
141 candidate #1: `foo::Bar`
143 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
144 --> $DIR/no-method-suggested-traits.rs:102:74
146 102 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
149 = help: items from traits can only be used if the trait is implemented and in scope
150 = note: the following trait defines an item `method2`, perhaps you need to implement it:
151 candidate #1: `foo::Bar`
153 error[E0599]: no method named `method3` found for type `Foo` in the current scope
154 --> $DIR/no-method-suggested-traits.rs:107:9
159 = help: items from traits can only be used if the trait is implemented and in scope
160 = note: the following trait defines an item `method3`, perhaps you need to implement it:
161 candidate #1: `no_method_suggested_traits::foo::PubPub`
163 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
164 --> $DIR/no-method-suggested-traits.rs:111:43
166 111 | std::rc::Rc::new(&mut Box::new(&Foo)).method3();
169 = help: items from traits can only be used if the trait is implemented and in scope
170 = note: the following trait defines an item `method3`, perhaps you need to implement it:
171 candidate #1: `no_method_suggested_traits::foo::PubPub`
173 error[E0599]: no method named `method3` found for type `Bar` in the current scope
174 --> $DIR/no-method-suggested-traits.rs:115:12
176 115 | Bar::X.method3();
179 = help: items from traits can only be used if the trait is implemented and in scope
180 = note: the following trait defines an item `method3`, perhaps you need to implement it:
181 candidate #1: `no_method_suggested_traits::foo::PubPub`
183 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&Bar>>` in the current scope
184 --> $DIR/no-method-suggested-traits.rs:119:46
186 119 | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3();
189 = help: items from traits can only be used if the trait is implemented and in scope
190 = note: the following trait defines an item `method3`, perhaps you need to implement it:
191 candidate #1: `no_method_suggested_traits::foo::PubPub`
193 error[E0599]: no method named `method3` found for type `usize` in the current scope
194 --> $DIR/no-method-suggested-traits.rs:125:13
196 125 | 1_usize.method3(); //~ ERROR no method named
199 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&usize>>` in the current scope
200 --> $DIR/no-method-suggested-traits.rs:126:47
202 126 | std::rc::Rc::new(&mut Box::new(&1_usize)).method3(); //~ ERROR no method named
205 error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Foo` in the current scope
206 --> $DIR/no-method-suggested-traits.rs:127:37
208 127 | no_method_suggested_traits::Foo.method3(); //~ ERROR no method named
211 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
212 --> $DIR/no-method-suggested-traits.rs:128:71
214 128 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3();
217 error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Bar` in the current scope
218 --> $DIR/no-method-suggested-traits.rs:130:40
220 130 | no_method_suggested_traits::Bar::X.method3(); //~ ERROR no method named
223 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
224 --> $DIR/no-method-suggested-traits.rs:131:74
226 131 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3();
229 error: aborting due to 24 previous errors