File tree 4 files changed +4
-4
lines changed
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;
7
7
8
8
fn main ( ) {
9
9
//~^ 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
11
11
use overlapping_pub_trait_source:: S ;
12
12
S . method ( ) ;
13
13
//~^ 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); }
12
12
= help: items from traits can only be used if the trait is in scope
13
13
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
14
14
|
15
- LL | use overlapping_pub_trait_source::prelude::_ ;
15
+ LL | use overlapping_pub_trait_source::m::Tr ;
16
16
|
17
17
18
18
error: 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;
8
8
9
9
fn main ( ) {
10
10
//~^ 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
12
12
use unnamed_pub_trait_source:: S ;
13
13
S . method ( ) ;
14
14
//~^ 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); }
12
12
= help: items from traits can only be used if the trait is in scope
13
13
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
14
14
|
15
- LL | use unnamed_pub_trait_source::prelude::_;
15
+ LL | use unnamed_pub_trait_source::prelude::*; // trait Tr
16
16
|
17
17
18
18
error: aborting due to previous error
You can’t perform that action at this time.
0 commit comments