Skip to content

Commit 682a342

Browse files
committedDec 21, 2021
Fixup tests for issue-86035
1 parent f835085 commit 682a342

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎src/test/ui/imports/overlapping_pub_trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern crate overlapping_pub_trait_source;
77

88
fn 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]

‎src/test/ui/imports/overlapping_pub_trait.stderr

+1-1
Original file line numberDiff line numberDiff 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
1313
help: 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

1818
error: aborting due to previous error

‎src/test/ui/imports/unnamed_pub_trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern crate unnamed_pub_trait_source;
88

99
fn 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]

‎src/test/ui/imports/unnamed_pub_trait.stderr

+1-1
Original file line numberDiff line numberDiff 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
1313
help: 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

1818
error: aborting due to previous error

0 commit comments

Comments
 (0)