]>
Commit | Line | Data |
---|---|---|
72b1a166 FG |
1 | error[E0599]: no method named `trait_method` found for struct `FooStruct` in the current scope |
2 | --> $DIR/issue-56175.rs:5:33 | |
3 | | | |
4 | LL | reexported_trait::FooStruct.trait_method(); | |
5 | | ^^^^^^^^^^^^ method not found in `FooStruct` | |
6 | | | |
7 | = help: items from traits can only be used if the trait is in scope | |
8 | help: the following trait is implemented but not in scope; perhaps add a `use` for it: | |
9 | | | |
10 | LL | use reexported_trait::Trait; | |
11 | | | |
12 | ||
13 | error[E0599]: no method named `trait_method_b` found for struct `FooStruct` in the current scope | |
14 | --> $DIR/issue-56175.rs:7:33 | |
15 | | | |
16 | LL | reexported_trait::FooStruct.trait_method_b(); | |
17 | | ^^^^^^^^^^^^^^ method not found in `FooStruct` | |
18 | | | |
19 | = help: items from traits can only be used if the trait is in scope | |
20 | help: the following trait is implemented but not in scope; perhaps add a `use` for it: | |
21 | | | |
22 | LL | use reexported_trait::TraitBRename; | |
23 | | | |
24 | ||
25 | error: aborting due to 2 previous errors | |
26 | ||
27 | For more information about this error, try `rustc --explain E0599`. |