]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/macros/macro-path-prelude-fail-1.stderr
clarify what the item is in "not a module" error
[rust.git] / src / test / ui / macros / macro-path-prelude-fail-1.stderr
index 4bf51bd893a880452038b343f0fb33f614def924..b68e89f07f67600c91c5fadd0f74ff15379277ef 100644 (file)
@@ -1,14 +1,14 @@
-error[E0433]: failed to resolve: not a module `Vec`
+error[E0433]: failed to resolve: `Vec` is a struct, not a module
   --> $DIR/macro-path-prelude-fail-1.rs:5:9
    |
-LL |         Vec::clone!(); //~ ERROR failed to resolve: not a module `Vec`
-   |         ^^^ not a module `Vec`
+LL |         Vec::clone!();
+   |         ^^^ `Vec` is a struct, not a module
 
-error[E0433]: failed to resolve: not a module `u8`
+error[E0433]: failed to resolve: `u8` is a builtin type, not a module
   --> $DIR/macro-path-prelude-fail-1.rs:6:9
    |
-LL |         u8::clone!(); //~ ERROR failed to resolve: not a module `u8`
-   |         ^^ not a module `u8`
+LL |         u8::clone!();
+   |         ^^ `u8` is a builtin type, not a module
 
 error: aborting due to 2 previous errors