mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-30 16:43:41 +00:00
Fixup tests for issue-86035
This commit is contained in:
parent
f83508592b
commit
682a3428a3
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user