fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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::Reexported; 13 | 14LL + use no_method_suggested_traits::foo::PubPub; 15 | 16LL + use no_method_suggested_traits::qux::PrivPub; 17 | 18 19error[E0599]: no method named `method` found for struct `Rc<&mut 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 `Rc<&mut 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::Reexported; 31 | 32LL + use no_method_suggested_traits::foo::PubPub; 33 | 34LL + use no_method_suggested_traits::qux::PrivPub; 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 | fn method(&self) {} 41 | ------ the method is available for `char` here 42... 43LL | 'a'.method(); 44 | ^^^^^^ method not found in `char` 45 | 46 = help: items from traits can only be used if the trait is in scope 47help: the following trait is implemented but not in scope; perhaps add a `use` for it: 48 | 49LL + use foo::Bar; 50 | 51 52error[E0599]: no method named `method` found for struct `Rc<&mut Box<&char>>` in the current scope 53 --> $DIR/no-method-suggested-traits.rs:32:43 54 | 55LL | std::rc::Rc::new(&mut Box::new(&'a')).method(); 56 | ^^^^^^ method not found in `Rc<&mut Box<&char>>` 57 | 58 = help: items from traits can only be used if the trait is in scope 59help: the following trait is implemented but not in scope; perhaps add a `use` for it: 60 | 61LL + use foo::Bar; 62 | 63 64error[E0599]: no method named `method` found for type `i32` in the current scope 65 --> $DIR/no-method-suggested-traits.rs:35:10 66 | 67LL | 1i32.method(); 68 | ^^^^^^ method not found in `i32` 69 | 70 ::: $DIR/auxiliary/no_method_suggested_traits.rs:8:12 71 | 72LL | fn method(&self) {} 73 | ------ the method is available for `i32` here 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 `Rc<&mut 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 `Rc<&mut 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 struct `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 struct 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: `PubPub` 106 candidate #3: `no_method_suggested_traits::qux::PrivPub` 107 candidate #4: `Reexported` 108 109error[E0599]: no method named `method` found for struct `Rc<&mut 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 `Rc<&mut 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: `PubPub` 119 candidate #3: `no_method_suggested_traits::qux::PrivPub` 120 candidate #4: `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 129note: `foo::Bar` defines an item `method2`, perhaps you need to implement it 130 --> $DIR/no-method-suggested-traits.rs:8:5 131 | 132LL | pub trait Bar { 133 | ^^^^^^^^^^^^^ 134 135error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&u64>>` in the current scope 136 --> $DIR/no-method-suggested-traits.rs:47:44 137 | 138LL | std::rc::Rc::new(&mut Box::new(&1u64)).method2(); 139 | ^^^^^^^ method not found in `Rc<&mut Box<&u64>>` 140 | 141 = help: items from traits can only be used if the trait is implemented and in scope 142note: `foo::Bar` defines an item `method2`, perhaps you need to implement it 143 --> $DIR/no-method-suggested-traits.rs:8:5 144 | 145LL | pub trait Bar { 146 | ^^^^^^^^^^^^^ 147 148error[E0599]: no method named `method2` found for struct `no_method_suggested_traits::Foo` in the current scope 149 --> $DIR/no-method-suggested-traits.rs:50:37 150 | 151LL | no_method_suggested_traits::Foo.method2(); 152 | ^^^^^^^ method not found in `Foo` 153 | 154 = help: items from traits can only be used if the trait is implemented and in scope 155note: `foo::Bar` defines an item `method2`, perhaps you need to implement it 156 --> $DIR/no-method-suggested-traits.rs:8:5 157 | 158LL | pub trait Bar { 159 | ^^^^^^^^^^^^^ 160 161error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&no_method_suggested_traits::Foo>>` in the current scope 162 --> $DIR/no-method-suggested-traits.rs:52:71 163 | 164LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2(); 165 | ^^^^^^^ method not found in `Rc<&mut Box<&Foo>>` 166 | 167 = help: items from traits can only be used if the trait is implemented and in scope 168note: `foo::Bar` defines an item `method2`, perhaps you need to implement it 169 --> $DIR/no-method-suggested-traits.rs:8:5 170 | 171LL | pub trait Bar { 172 | ^^^^^^^^^^^^^ 173 174error[E0599]: no method named `method2` found for enum `no_method_suggested_traits::Bar` in the current scope 175 --> $DIR/no-method-suggested-traits.rs:54:40 176 | 177LL | no_method_suggested_traits::Bar::X.method2(); 178 | ^^^^^^^ method not found in `Bar` 179 | 180 = help: items from traits can only be used if the trait is implemented and in scope 181note: `foo::Bar` defines an item `method2`, perhaps you need to implement it 182 --> $DIR/no-method-suggested-traits.rs:8:5 183 | 184LL | pub trait Bar { 185 | ^^^^^^^^^^^^^ 186 187error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&no_method_suggested_traits::Bar>>` in the current scope 188 --> $DIR/no-method-suggested-traits.rs:56:74 189 | 190LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2(); 191 | ^^^^^^^ method not found in `Rc<&mut Box<&Bar>>` 192 | 193 = help: items from traits can only be used if the trait is implemented and in scope 194note: `foo::Bar` defines an item `method2`, perhaps you need to implement it 195 --> $DIR/no-method-suggested-traits.rs:8:5 196 | 197LL | pub trait Bar { 198 | ^^^^^^^^^^^^^ 199 200error[E0599]: no method named `method3` found for struct `Foo` in the current scope 201 --> $DIR/no-method-suggested-traits.rs:59:9 202 | 203LL | struct Foo; 204 | ---------- method `method3` not found for this struct 205... 206LL | Foo.method3(); 207 | ^^^^^^^ method not found in `Foo` 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: 211 candidate #1: `PubPub` 212 213error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&Foo>>` in the current scope 214 --> $DIR/no-method-suggested-traits.rs:61:43 215 | 216LL | std::rc::Rc::new(&mut Box::new(&Foo)).method3(); 217 | ^^^^^^^ method not found in `Rc<&mut Box<&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: `PubPub` 222 223error[E0599]: no method named `method3` found for enum `Bar` in the current scope 224 --> $DIR/no-method-suggested-traits.rs:63:12 225 | 226LL | enum Bar { X } 227 | -------- method `method3` not found for this enum 228... 229LL | Bar::X.method3(); 230 | ^^^^^^^ method not found in `Bar` 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: 234 candidate #1: `PubPub` 235 236error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&Bar>>` in the current scope 237 --> $DIR/no-method-suggested-traits.rs:65:46 238 | 239LL | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3(); 240 | ^^^^^^^ method not found in `Rc<&mut Box<&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: `PubPub` 245 246error[E0599]: no method named `method3` found for type `usize` in the current scope 247 --> $DIR/no-method-suggested-traits.rs:69:13 248 | 249LL | 1_usize.method3(); 250 | ^^^^^^^ method not found in `usize` 251 252error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&usize>>` in the current scope 253 --> $DIR/no-method-suggested-traits.rs:70:47 254 | 255LL | std::rc::Rc::new(&mut Box::new(&1_usize)).method3(); 256 | ^^^^^^^ method not found in `Rc<&mut Box<&usize>>` 257 258error[E0599]: no method named `method3` found for struct `no_method_suggested_traits::Foo` in the current scope 259 --> $DIR/no-method-suggested-traits.rs:71:37 260 | 261LL | no_method_suggested_traits::Foo.method3(); 262 | ^^^^^^^ method not found in `Foo` 263 264error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&no_method_suggested_traits::Foo>>` in the current scope 265 --> $DIR/no-method-suggested-traits.rs:72:71 266 | 267LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3(); 268 | ^^^^^^^ method not found in `Rc<&mut Box<&Foo>>` 269 270error[E0599]: no method named `method3` found for enum `no_method_suggested_traits::Bar` in the current scope 271 --> $DIR/no-method-suggested-traits.rs:74:40 272 | 273LL | no_method_suggested_traits::Bar::X.method3(); 274 | ^^^^^^^ method not found in `Bar` 275 276error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&no_method_suggested_traits::Bar>>` in the current scope 277 --> $DIR/no-method-suggested-traits.rs:75:74 278 | 279LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3(); 280 | ^^^^^^^ method not found in `Rc<&mut Box<&Bar>>` 281 282error: aborting due to 24 previous errors 283 284For more information about this error, try `rustc --explain E0599`.