]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0599]: no method named `method` found for type `u32` in the current scope |
0731742a | 2 | --> $DIR/no-method-suggested-traits.rs:23:10 |
7cac9316 | 3 | | |
0531ce1d | 4 | LL | 1u32.method(); |
e1599b0c | 5 | | ^^^^^^ method not found in `u32` |
7cac9316 XL |
6 | | |
7 | = help: items from traits can only be used if the trait is in scope | |
e74abb32 | 8 | help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: |
ff7c6d11 | 9 | | |
0531ce1d | 10 | LL | use foo::Bar; |
ff7c6d11 | 11 | | |
0531ce1d | 12 | LL | use no_method_suggested_traits::foo::PubPub; |
ff7c6d11 | 13 | | |
0531ce1d | 14 | LL | use no_method_suggested_traits::qux::PrivPub; |
ff7c6d11 | 15 | | |
0531ce1d | 16 | LL | use no_method_suggested_traits::Reexported; |
ff7c6d11 | 17 | | |
7cac9316 | 18 | |
1b1a35ee | 19 | error[E0599]: no method named `method` found for struct `Rc<&mut Box<&u32>>` in the current scope |
0731742a | 20 | --> $DIR/no-method-suggested-traits.rs:26:44 |
7cac9316 | 21 | | |
0531ce1d | 22 | LL | std::rc::Rc::new(&mut Box::new(&1u32)).method(); |
1b1a35ee | 23 | | ^^^^^^ method not found in `Rc<&mut Box<&u32>>` |
7cac9316 XL |
24 | | |
25 | = help: items from traits can only be used if the trait is in scope | |
e74abb32 | 26 | help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: |
ff7c6d11 | 27 | | |
0531ce1d | 28 | LL | use foo::Bar; |
ff7c6d11 | 29 | | |
0531ce1d | 30 | LL | use no_method_suggested_traits::foo::PubPub; |
ff7c6d11 | 31 | | |
0531ce1d | 32 | LL | use no_method_suggested_traits::qux::PrivPub; |
ff7c6d11 | 33 | | |
0531ce1d | 34 | LL | use no_method_suggested_traits::Reexported; |
ff7c6d11 | 35 | | |
7cac9316 XL |
36 | |
37 | error[E0599]: no method named `method` found for type `char` in the current scope | |
0731742a | 38 | --> $DIR/no-method-suggested-traits.rs:30:9 |
7cac9316 | 39 | | |
cdc7bbd5 XL |
40 | LL | fn method(&self) {} |
41 | | ------ the method is available for `char` here | |
42 | ... | |
0531ce1d | 43 | LL | 'a'.method(); |
e1599b0c | 44 | | ^^^^^^ method not found in `char` |
7cac9316 XL |
45 | | |
46 | = help: items from traits can only be used if the trait is in scope | |
e74abb32 | 47 | help: the following trait is implemented but not in scope; perhaps add a `use` for it: |
ff7c6d11 | 48 | | |
0531ce1d | 49 | LL | use foo::Bar; |
ff7c6d11 | 50 | | |
7cac9316 | 51 | |
1b1a35ee | 52 | error[E0599]: no method named `method` found for struct `Rc<&mut Box<&char>>` in the current scope |
0731742a | 53 | --> $DIR/no-method-suggested-traits.rs:32:43 |
7cac9316 | 54 | | |
0531ce1d | 55 | LL | std::rc::Rc::new(&mut Box::new(&'a')).method(); |
1b1a35ee | 56 | | ^^^^^^ method not found in `Rc<&mut Box<&char>>` |
7cac9316 XL |
57 | | |
58 | = help: items from traits can only be used if the trait is in scope | |
e74abb32 | 59 | help: the following trait is implemented but not in scope; perhaps add a `use` for it: |
ff7c6d11 | 60 | | |
0531ce1d | 61 | LL | use foo::Bar; |
ff7c6d11 | 62 | | |
7cac9316 XL |
63 | |
64 | error[E0599]: no method named `method` found for type `i32` in the current scope | |
0731742a | 65 | --> $DIR/no-method-suggested-traits.rs:35:10 |
7cac9316 | 66 | | |
0531ce1d | 67 | LL | 1i32.method(); |
e1599b0c | 68 | | ^^^^^^ method not found in `i32` |
94222f64 | 69 | | |
cdc7bbd5 XL |
70 | ::: $DIR/auxiliary/no_method_suggested_traits.rs:8:12 |
71 | | | |
72 | LL | fn method(&self) {} | |
73 | | ------ the method is available for `i32` here | |
7cac9316 XL |
74 | | |
75 | = help: items from traits can only be used if the trait is in scope | |
e74abb32 | 76 | help: the following trait is implemented but not in scope; perhaps add a `use` for it: |
ff7c6d11 | 77 | | |
0531ce1d | 78 | LL | use no_method_suggested_traits::foo::PubPub; |
ff7c6d11 | 79 | | |
7cac9316 | 80 | |
1b1a35ee | 81 | error[E0599]: no method named `method` found for struct `Rc<&mut Box<&i32>>` in the current scope |
0731742a | 82 | --> $DIR/no-method-suggested-traits.rs:37:44 |
7cac9316 | 83 | | |
0531ce1d | 84 | LL | std::rc::Rc::new(&mut Box::new(&1i32)).method(); |
1b1a35ee | 85 | | ^^^^^^ method not found in `Rc<&mut Box<&i32>>` |
7cac9316 XL |
86 | | |
87 | = help: items from traits can only be used if the trait is in scope | |
e74abb32 | 88 | help: the following trait is implemented but not in scope; perhaps add a `use` for it: |
ff7c6d11 | 89 | | |
0531ce1d | 90 | LL | use no_method_suggested_traits::foo::PubPub; |
ff7c6d11 | 91 | | |
7cac9316 | 92 | |
dfeec247 | 93 | error[E0599]: no method named `method` found for struct `Foo` in the current scope |
0731742a | 94 | --> $DIR/no-method-suggested-traits.rs:40:9 |
7cac9316 | 95 | | |
0531ce1d | 96 | LL | struct Foo; |
ff7c6d11 XL |
97 | | ----------- method `method` not found for this |
98 | ... | |
0531ce1d | 99 | LL | Foo.method(); |
e1599b0c | 100 | | ^^^^^^ method not found in `Foo` |
7cac9316 XL |
101 | | |
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` | |
1b1a35ee | 105 | candidate #2: `PubPub` |
2c00a5a8 | 106 | candidate #3: `no_method_suggested_traits::qux::PrivPub` |
1b1a35ee | 107 | candidate #4: `Reexported` |
7cac9316 | 108 | |
1b1a35ee | 109 | error[E0599]: no method named `method` found for struct `Rc<&mut Box<&Foo>>` in the current scope |
0731742a | 110 | --> $DIR/no-method-suggested-traits.rs:42:43 |
7cac9316 | 111 | | |
0531ce1d | 112 | LL | std::rc::Rc::new(&mut Box::new(&Foo)).method(); |
1b1a35ee | 113 | | ^^^^^^ method not found in `Rc<&mut Box<&Foo>>` |
7cac9316 XL |
114 | | |
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` | |
1b1a35ee | 118 | candidate #2: `PubPub` |
2c00a5a8 | 119 | candidate #3: `no_method_suggested_traits::qux::PrivPub` |
1b1a35ee | 120 | candidate #4: `Reexported` |
7cac9316 XL |
121 | |
122 | error[E0599]: no method named `method2` found for type `u64` in the current scope | |
0731742a | 123 | --> $DIR/no-method-suggested-traits.rs:45:10 |
7cac9316 | 124 | | |
0531ce1d | 125 | LL | 1u64.method2(); |
e1599b0c | 126 | | ^^^^^^^ method not found in `u64` |
7cac9316 XL |
127 | | |
128 | = help: items from traits can only be used if the trait is implemented and in scope | |
74b04a01 XL |
129 | note: `foo::Bar` defines an item `method2`, perhaps you need to implement it |
130 | --> $DIR/no-method-suggested-traits.rs:8:5 | |
131 | | | |
132 | LL | pub trait Bar { | |
133 | | ^^^^^^^^^^^^^ | |
7cac9316 | 134 | |
1b1a35ee | 135 | error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&u64>>` in the current scope |
0731742a | 136 | --> $DIR/no-method-suggested-traits.rs:47:44 |
7cac9316 | 137 | | |
0531ce1d | 138 | LL | std::rc::Rc::new(&mut Box::new(&1u64)).method2(); |
1b1a35ee | 139 | | ^^^^^^^ method not found in `Rc<&mut Box<&u64>>` |
7cac9316 XL |
140 | | |
141 | = help: items from traits can only be used if the trait is implemented and in scope | |
74b04a01 XL |
142 | note: `foo::Bar` defines an item `method2`, perhaps you need to implement it |
143 | --> $DIR/no-method-suggested-traits.rs:8:5 | |
144 | | | |
145 | LL | pub trait Bar { | |
146 | | ^^^^^^^^^^^^^ | |
7cac9316 | 147 | |
dfeec247 | 148 | error[E0599]: no method named `method2` found for struct `no_method_suggested_traits::Foo` in the current scope |
0731742a | 149 | --> $DIR/no-method-suggested-traits.rs:50:37 |
7cac9316 | 150 | | |
0531ce1d | 151 | LL | no_method_suggested_traits::Foo.method2(); |
e1599b0c | 152 | | ^^^^^^^ method not found in `no_method_suggested_traits::Foo` |
7cac9316 XL |
153 | | |
154 | = help: items from traits can only be used if the trait is implemented and in scope | |
74b04a01 XL |
155 | note: `foo::Bar` defines an item `method2`, perhaps you need to implement it |
156 | --> $DIR/no-method-suggested-traits.rs:8:5 | |
157 | | | |
158 | LL | pub trait Bar { | |
159 | | ^^^^^^^^^^^^^ | |
7cac9316 | 160 | |
1b1a35ee | 161 | error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&no_method_suggested_traits::Foo>>` in the current scope |
0731742a | 162 | --> $DIR/no-method-suggested-traits.rs:52:71 |
7cac9316 | 163 | | |
0531ce1d | 164 | LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2(); |
1b1a35ee | 165 | | ^^^^^^^ method not found in `Rc<&mut Box<&no_method_suggested_traits::Foo>>` |
7cac9316 XL |
166 | | |
167 | = help: items from traits can only be used if the trait is implemented and in scope | |
74b04a01 XL |
168 | note: `foo::Bar` defines an item `method2`, perhaps you need to implement it |
169 | --> $DIR/no-method-suggested-traits.rs:8:5 | |
170 | | | |
171 | LL | pub trait Bar { | |
172 | | ^^^^^^^^^^^^^ | |
7cac9316 | 173 | |
dfeec247 | 174 | error[E0599]: no method named `method2` found for enum `no_method_suggested_traits::Bar` in the current scope |
0731742a | 175 | --> $DIR/no-method-suggested-traits.rs:54:40 |
7cac9316 | 176 | | |
0531ce1d | 177 | LL | no_method_suggested_traits::Bar::X.method2(); |
e1599b0c | 178 | | ^^^^^^^ method not found in `no_method_suggested_traits::Bar` |
7cac9316 XL |
179 | | |
180 | = help: items from traits can only be used if the trait is implemented and in scope | |
74b04a01 XL |
181 | note: `foo::Bar` defines an item `method2`, perhaps you need to implement it |
182 | --> $DIR/no-method-suggested-traits.rs:8:5 | |
183 | | | |
184 | LL | pub trait Bar { | |
185 | | ^^^^^^^^^^^^^ | |
7cac9316 | 186 | |
1b1a35ee | 187 | error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&no_method_suggested_traits::Bar>>` in the current scope |
0731742a | 188 | --> $DIR/no-method-suggested-traits.rs:56:74 |
ff7c6d11 | 189 | | |
0531ce1d | 190 | LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2(); |
1b1a35ee | 191 | | ^^^^^^^ method not found in `Rc<&mut Box<&no_method_suggested_traits::Bar>>` |
ff7c6d11 XL |
192 | | |
193 | = help: items from traits can only be used if the trait is implemented and in scope | |
74b04a01 XL |
194 | note: `foo::Bar` defines an item `method2`, perhaps you need to implement it |
195 | --> $DIR/no-method-suggested-traits.rs:8:5 | |
196 | | | |
197 | LL | pub trait Bar { | |
198 | | ^^^^^^^^^^^^^ | |
7cac9316 | 199 | |
dfeec247 | 200 | error[E0599]: no method named `method3` found for struct `Foo` in the current scope |
0731742a | 201 | --> $DIR/no-method-suggested-traits.rs:59:9 |
ff7c6d11 | 202 | | |
0531ce1d | 203 | LL | struct Foo; |
ff7c6d11 XL |
204 | | ----------- method `method3` not found for this |
205 | ... | |
0531ce1d | 206 | LL | Foo.method3(); |
e1599b0c | 207 | | ^^^^^^^ method not found in `Foo` |
ff7c6d11 XL |
208 | | |
209 | = help: items from traits can only be used if the trait is implemented and in scope | |
210 | = note: the following trait defines an item `method3`, perhaps you need to implement it: | |
1b1a35ee | 211 | candidate #1: `PubPub` |
7cac9316 | 212 | |
1b1a35ee | 213 | error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&Foo>>` in the current scope |
0731742a | 214 | --> $DIR/no-method-suggested-traits.rs:61:43 |
ff7c6d11 | 215 | | |
0531ce1d | 216 | LL | std::rc::Rc::new(&mut Box::new(&Foo)).method3(); |
1b1a35ee | 217 | | ^^^^^^^ method not found in `Rc<&mut Box<&Foo>>` |
ff7c6d11 XL |
218 | | |
219 | = help: items from traits can only be used if the trait is implemented and in scope | |
220 | = note: the following trait defines an item `method3`, perhaps you need to implement it: | |
1b1a35ee | 221 | candidate #1: `PubPub` |
7cac9316 | 222 | |
dfeec247 | 223 | error[E0599]: no method named `method3` found for enum `Bar` in the current scope |
0731742a | 224 | --> $DIR/no-method-suggested-traits.rs:63:12 |
ff7c6d11 | 225 | | |
0531ce1d | 226 | LL | enum Bar { X } |
ff7c6d11 XL |
227 | | -------- method `method3` not found for this |
228 | ... | |
0531ce1d | 229 | LL | Bar::X.method3(); |
e1599b0c | 230 | | ^^^^^^^ method not found in `Bar` |
ff7c6d11 XL |
231 | | |
232 | = help: items from traits can only be used if the trait is implemented and in scope | |
233 | = note: the following trait defines an item `method3`, perhaps you need to implement it: | |
1b1a35ee | 234 | candidate #1: `PubPub` |
7cac9316 | 235 | |
1b1a35ee | 236 | error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&Bar>>` in the current scope |
0731742a | 237 | --> $DIR/no-method-suggested-traits.rs:65:46 |
ff7c6d11 | 238 | | |
0531ce1d | 239 | LL | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3(); |
1b1a35ee | 240 | | ^^^^^^^ method not found in `Rc<&mut Box<&Bar>>` |
ff7c6d11 XL |
241 | | |
242 | = help: items from traits can only be used if the trait is implemented and in scope | |
243 | = note: the following trait defines an item `method3`, perhaps you need to implement it: | |
1b1a35ee | 244 | candidate #1: `PubPub` |
7cac9316 XL |
245 | |
246 | error[E0599]: no method named `method3` found for type `usize` in the current scope | |
0731742a | 247 | --> $DIR/no-method-suggested-traits.rs:69:13 |
ff7c6d11 | 248 | | |
532ac7d7 | 249 | LL | 1_usize.method3(); |
e1599b0c | 250 | | ^^^^^^^ method not found in `usize` |
7cac9316 | 251 | |
1b1a35ee | 252 | error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&usize>>` in the current scope |
0731742a | 253 | --> $DIR/no-method-suggested-traits.rs:70:47 |
ff7c6d11 | 254 | | |
532ac7d7 | 255 | LL | std::rc::Rc::new(&mut Box::new(&1_usize)).method3(); |
1b1a35ee | 256 | | ^^^^^^^ method not found in `Rc<&mut Box<&usize>>` |
7cac9316 | 257 | |
dfeec247 | 258 | error[E0599]: no method named `method3` found for struct `no_method_suggested_traits::Foo` in the current scope |
0731742a | 259 | --> $DIR/no-method-suggested-traits.rs:71:37 |
ff7c6d11 | 260 | | |
532ac7d7 | 261 | LL | no_method_suggested_traits::Foo.method3(); |
e1599b0c | 262 | | ^^^^^^^ method not found in `no_method_suggested_traits::Foo` |
7cac9316 | 263 | |
1b1a35ee | 264 | error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&no_method_suggested_traits::Foo>>` in the current scope |
0731742a | 265 | --> $DIR/no-method-suggested-traits.rs:72:71 |
ff7c6d11 | 266 | | |
0531ce1d | 267 | LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3(); |
1b1a35ee | 268 | | ^^^^^^^ method not found in `Rc<&mut Box<&no_method_suggested_traits::Foo>>` |
7cac9316 | 269 | |
dfeec247 | 270 | error[E0599]: no method named `method3` found for enum `no_method_suggested_traits::Bar` in the current scope |
0731742a | 271 | --> $DIR/no-method-suggested-traits.rs:74:40 |
ff7c6d11 | 272 | | |
532ac7d7 | 273 | LL | no_method_suggested_traits::Bar::X.method3(); |
e1599b0c | 274 | | ^^^^^^^ method not found in `no_method_suggested_traits::Bar` |
7cac9316 | 275 | |
1b1a35ee | 276 | error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&no_method_suggested_traits::Bar>>` in the current scope |
0731742a | 277 | --> $DIR/no-method-suggested-traits.rs:75:74 |
ff7c6d11 | 278 | | |
0531ce1d | 279 | LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3(); |
1b1a35ee | 280 | | ^^^^^^^ method not found in `Rc<&mut Box<&no_method_suggested_traits::Bar>>` |
7cac9316 | 281 | |
041b39d2 | 282 | error: aborting due to 24 previous errors |
7cac9316 | 283 | |
0531ce1d | 284 | For more information about this error, try `rustc --explain E0599`. |