fn main() {
//~^ HELP the following trait is implemented but not in scope; perhaps add a `use` for it:
- //~| SUGGESTION overlapping_pub_trait_source::prelude::_
+ //~| SUGGESTION overlapping_pub_trait_source::m::Tr
use overlapping_pub_trait_source::S;
S.method();
//~^ ERROR no method named `method` found for struct `S` in the current scope [E0599]
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
-LL | use overlapping_pub_trait_source::prelude::_;
+LL | use overlapping_pub_trait_source::m::Tr;
|
error: aborting due to previous error
fn main() {
//~^ HELP the following trait is implemented but not in scope; perhaps add a `use` for it:
- //~| SUGGESTION unnamed_pub_trait_source::prelude::_
+ //~| SUGGESTION unnamed_pub_trait_source::prelude::*; // trait Tr
use unnamed_pub_trait_source::S;
S.method();
//~^ ERROR no method named `method` found for struct `S` in the current scope [E0599]
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
-LL | use unnamed_pub_trait_source::prelude::_;
+LL | use unnamed_pub_trait_source::prelude::*; // trait Tr
|
error: aborting due to previous error