diff options
| author | Kornel <kornel@geekhood.net> | 2020-08-27 13:27:14 +0100 |
|---|---|---|
| committer | Kornel <kornel@geekhood.net> | 2020-09-01 18:38:14 +0100 |
| commit | 7ec1de062a1aadef0293bb65e71fbcc7cc24ebfd (patch) | |
| tree | 62d30e2e0f31039bdb4abeb31ec474359e85df42 /src/test/ui/attributes | |
| parent | 397db054cb1f3d98e3d2809d25c60f1979cd5a97 (diff) | |
Clarify message about unresolved use
Diffstat (limited to 'src/test/ui/attributes')
| -rw-r--r-- | src/test/ui/attributes/register-attr-tool-prelude.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/attributes/register-attr-tool-prelude.stderr | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/attributes/register-attr-tool-prelude.rs b/src/test/ui/attributes/register-attr-tool-prelude.rs index a491773f5eb..d217a8146d2 100644 --- a/src/test/ui/attributes/register-attr-tool-prelude.rs +++ b/src/test/ui/attributes/register-attr-tool-prelude.rs @@ -7,7 +7,7 @@ #[no_implicit_prelude] mod m { #[attr] //~ ERROR cannot find attribute `attr` in this scope - #[tool::attr] //~ ERROR failed to resolve: use of undeclared type or module `tool` + #[tool::attr] //~ ERROR failed to resolve: use of undeclared crate or module `tool` fn check() {} } diff --git a/src/test/ui/attributes/register-attr-tool-prelude.stderr b/src/test/ui/attributes/register-attr-tool-prelude.stderr index 66a4eeb6aa4..905b661206a 100644 --- a/src/test/ui/attributes/register-attr-tool-prelude.stderr +++ b/src/test/ui/attributes/register-attr-tool-prelude.stderr @@ -1,8 +1,8 @@ -error[E0433]: failed to resolve: use of undeclared type or module `tool` +error[E0433]: failed to resolve: use of undeclared crate or module `tool` --> $DIR/register-attr-tool-prelude.rs:10:7 | LL | #[tool::attr] - | ^^^^ use of undeclared type or module `tool` + | ^^^^ use of undeclared crate or module `tool` error: cannot find attribute `attr` in this scope --> $DIR/register-attr-tool-prelude.rs:9:7 |
