]> git.lizzy.rs Git - rust.git/commitdiff
Fixup tests for issue-86035
authorMichael Goulet <michael@errs.io>
Wed, 1 Dec 2021 02:27:04 +0000 (18:27 -0800)
committerMichael Goulet <michael@errs.io>
Tue, 21 Dec 2021 03:53:31 +0000 (19:53 -0800)
src/test/ui/imports/overlapping_pub_trait.rs
src/test/ui/imports/overlapping_pub_trait.stderr
src/test/ui/imports/unnamed_pub_trait.rs
src/test/ui/imports/unnamed_pub_trait.stderr

index a28c3b6cd4606c3ee43f1c9c33460f4f5702fcc5..f5f5d4ed3804fe8c008f4d21e95d1baf09858813 100644 (file)
@@ -7,7 +7,7 @@
 
 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]
index 36ea9ae006e0151be1fcba153ac60f943377437f..d0c845a5e523f1588d7b2955818742e2fd6d22c3 100644 (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
index 79f7ebfbd4aace1b019ee9819ad2fbf06db0f030..b06b1e1d07dced7d1c671982a69aed9583da0bc5 100644 (file)
@@ -8,7 +8,7 @@
 
 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]
index 75ccbcd384e65920412366cbc51f636d58506b1e..319dfd7e1b28b9e952d9513565f20a3c6c26e853 100644 (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