fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0599]: no method named `trait_method` found for struct `FooStruct` in the current scope 2 --> $DIR/issue-56175.rs:5:33 3 | 4LL | reexported_trait::FooStruct.trait_method(); 5 | ^^^^^^^^^^^^ method not found in `FooStruct` 6 | 7 ::: $DIR/auxiliary/reexported-trait.rs:3:12 8 | 9LL | fn trait_method(&self) { 10 | ------------ the method is available for `FooStruct` here 11 | 12 = help: items from traits can only be used if the trait is in scope 13help: the following trait is implemented but not in scope; perhaps add a `use` for it: 14 | 15LL + use reexported_trait::Trait; 16 | 17 18error[E0599]: no method named `trait_method_b` found for struct `FooStruct` in the current scope 19 --> $DIR/issue-56175.rs:7:33 20 | 21LL | reexported_trait::FooStruct.trait_method_b(); 22 | ^^^^^^^^^^^^^^ method not found in `FooStruct` 23 | 24 ::: $DIR/auxiliary/reexported-trait.rs:7:12 25 | 26LL | fn trait_method_b(&self) { 27 | -------------- the method is available for `FooStruct` here 28 | 29 = help: items from traits can only be used if the trait is in scope 30help: the following trait is implemented but not in scope; perhaps add a `use` for it: 31 | 32LL + use reexported_trait::TraitBRename; 33 | 34 35error: aborting due to 2 previous errors 36 37For more information about this error, try `rustc --explain E0599`.