File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ extern crate overlapping_pub_trait_source;
77
88fn main ( ) {
99 //~^ HELP the following trait is implemented but not in scope; perhaps add a `use` for it:
10- //~| SUGGESTION overlapping_pub_trait_source::prelude::_
10+ //~| SUGGESTION overlapping_pub_trait_source::m::Tr
1111 use overlapping_pub_trait_source:: S ;
1212 S . method ( ) ;
1313 //~^ ERROR no method named `method` found for struct `S` in the current scope [E0599]
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ LL | pub trait Tr { fn method(&self); }
1212 = help: items from traits can only be used if the trait is in scope
1313help: the following trait is implemented but not in scope; perhaps add a `use` for it:
1414 |
15- LL | use overlapping_pub_trait_source::prelude::_ ;
15+ LL | use overlapping_pub_trait_source::m::Tr ;
1616 |
1717
1818error: aborting due to previous error
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ extern crate unnamed_pub_trait_source;
88
99fn main ( ) {
1010 //~^ HELP the following trait is implemented but not in scope; perhaps add a `use` for it:
11- //~| SUGGESTION unnamed_pub_trait_source::prelude::_
11+ //~| SUGGESTION unnamed_pub_trait_source::prelude::*; // trait Tr
1212 use unnamed_pub_trait_source:: S ;
1313 S . method ( ) ;
1414 //~^ ERROR no method named `method` found for struct `S` in the current scope [E0599]
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ LL | pub trait Tr { fn method(&self); }
1212 = help: items from traits can only be used if the trait is in scope
1313help: the following trait is implemented but not in scope; perhaps add a `use` for it:
1414 |
15- LL | use unnamed_pub_trait_source::prelude::_;
15+ LL | use unnamed_pub_trait_source::prelude::*; // trait Tr
1616 |
1717
1818error: aborting due to previous error
You can’t perform that action at this time.
0 commit comments