fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.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 type `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 type `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 type `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 = help: items from traits can only be used if the trait is in scope 88help: the following trait is implemented but not in scope, perhaps add a `use` for it: 89 | 90LL | use no_method_suggested_traits::foo::PubPub; 91 | 92 93error[E0599]: no method named `method` found for type `Foo` in the current scope 94 --> $DIR/no-method-suggested-traits.rs:40:9 95 | 96LL | struct Foo; 97 | ----------- method `method` not found for this 98... 99LL | Foo.method(); 100 | ^^^^^^ method not found in `Foo` 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` 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` 108 109error[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 111 | 112LL | std::rc::Rc::new(&mut Box::new(&Foo)).method(); 113 | ^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&Foo>>` 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` 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` 121 122error[E0599]: no method named `method2` found for type `u64` in the current scope 123 --> $DIR/no-method-suggested-traits.rs:45:10 124 | 125LL | 1u64.method2(); 126 | ^^^^^^^ method not found in `u64` 127 | 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` 131 132error[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 134 | 135LL | std::rc::Rc::new(&mut Box::new(&1u64)).method2(); 136 | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&u64>>` 137 | 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` 141 142error[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 144 | 145LL | no_method_suggested_traits::Foo.method2(); 146 | ^^^^^^^ method not found in `no_method_suggested_traits::Foo` 147 | 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` 151 152error[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 154 | 155LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2(); 156 | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Foo>>` 157 | 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` 161 162error[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 164 | 165LL | no_method_suggested_traits::Bar::X.method2(); 166 | ^^^^^^^ method not found in `no_method_suggested_traits::Bar` 167 | 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` 171 172error[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 174 | 175LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2(); 176 | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>` 177 | 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` 181 182error[E0599]: no method named `method3` found for type `Foo` in the current scope 183 --> $DIR/no-method-suggested-traits.rs:59:9 184 | 185LL | struct Foo; 186 | ----------- method `method3` not found for this 187... 188LL | Foo.method3(); 189 | ^^^^^^^ method not found in `Foo` 190 | 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` 194 195error[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 197 | 198LL | std::rc::Rc::new(&mut Box::new(&Foo)).method3(); 199 | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&Foo>>` 200 | 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` 204 205error[E0599]: no method named `method3` found for type `Bar` in the current scope 206 --> $DIR/no-method-suggested-traits.rs:63:12 207 | 208LL | enum Bar { X } 209 | -------- method `method3` not found for this 210... 211LL | Bar::X.method3(); 212 | ^^^^^^^ method not found in `Bar` 213 | 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` 217 218error[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 220 | 221LL | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3(); 222 | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&Bar>>` 223 | 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` 227 228error[E0599]: no method named `method3` found for type `usize` in the current scope 229 --> $DIR/no-method-suggested-traits.rs:69:13 230 | 231LL | 1_usize.method3(); 232 | ^^^^^^^ method not found in `usize` 233 234error[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 236 | 237LL | std::rc::Rc::new(&mut Box::new(&1_usize)).method3(); 238 | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&usize>>` 239 240error[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 242 | 243LL | no_method_suggested_traits::Foo.method3(); 244 | ^^^^^^^ method not found in `no_method_suggested_traits::Foo` 245 246error[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 248 | 249LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3(); 250 | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Foo>>` 251 252error[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 254 | 255LL | no_method_suggested_traits::Bar::X.method3(); 256 | ^^^^^^^ method not found in `no_method_suggested_traits::Bar` 257 258error[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 260 | 261LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3(); 262 | ^^^^^^^ method not found in `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>` 263 264error: aborting due to 24 previous errors 265 266For more information about this error, try `rustc --explain E0599`.