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