Fixup tests for issue-86035

This commit is contained in:
Michael Goulet 2021-11-30 18:27:04 -08:00
parent f83508592b
commit 682a3428a3
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ extern crate overlapping_pub_trait_source;
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]

View File

@ -12,7 +12,7 @@ LL | pub trait Tr { fn method(&self); }
= 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

View File

@ -8,7 +8,7 @@ extern crate unnamed_pub_trait_source;
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]

View File

@ -12,7 +12,7 @@ LL | pub trait Tr { fn method(&self); }
= 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