about summary refs log tree commit diff
path: root/src/test/ui/use
diff options
context:
space:
mode:
authorKornel <kornel@geekhood.net>2020-08-27 13:27:14 +0100
committerKornel <kornel@geekhood.net>2020-09-01 18:38:14 +0100
commit7ec1de062a1aadef0293bb65e71fbcc7cc24ebfd (patch)
tree62d30e2e0f31039bdb4abeb31ec474359e85df42 /src/test/ui/use
parent397db054cb1f3d98e3d2809d25c60f1979cd5a97 (diff)
downloadrust-7ec1de062a1aadef0293bb65e71fbcc7cc24ebfd.tar.gz
rust-7ec1de062a1aadef0293bb65e71fbcc7cc24ebfd.zip
Clarify message about unresolved use
Diffstat (limited to 'src/test/ui/use')
-rw-r--r--src/test/ui/use/use-self-type.rs2
-rw-r--r--src/test/ui/use/use-self-type.stderr6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/use/use-self-type.rs b/src/test/ui/use/use-self-type.rs
index 3e5c7bf3cca..370593b2eb2 100644
--- a/src/test/ui/use/use-self-type.rs
+++ b/src/test/ui/use/use-self-type.rs
@@ -4,7 +4,7 @@ impl S {
     fn f() {}
     fn g() {
         use Self::f; //~ ERROR unresolved import
-        pub(in Self::f) struct Z; //~ ERROR use of undeclared type or module `Self`
+        pub(in Self::f) struct Z; //~ ERROR use of undeclared type `Self`
     }
 }
 
diff --git a/src/test/ui/use/use-self-type.stderr b/src/test/ui/use/use-self-type.stderr
index 0dd0e04267c..d1469fb3490 100644
--- a/src/test/ui/use/use-self-type.stderr
+++ b/src/test/ui/use/use-self-type.stderr
@@ -1,14 +1,14 @@
-error[E0433]: failed to resolve: use of undeclared type or module `Self`
+error[E0433]: failed to resolve: use of undeclared type `Self`
   --> $DIR/use-self-type.rs:7:16
    |
 LL |         pub(in Self::f) struct Z;
-   |                ^^^^ use of undeclared type or module `Self`
+   |                ^^^^ use of undeclared type `Self`
 
 error[E0432]: unresolved import `Self`
   --> $DIR/use-self-type.rs:6:13
    |
 LL |         use Self::f;
-   |             ^^^^ use of undeclared type or module `Self`
+   |             ^^^^ use of undeclared type `Self`
 
 error: aborting due to 2 previous errors