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