]> 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 590e4f0fd062ef93ac3fd13cd4c55391d1d43a29..b68e89f07f67600c91c5fadd0f74ff15379277ef 100644 (file)
@@ -1,14 +1,14 @@
-error[E0433]: failed to resolve: not a module `Vec`
-  --> $DIR/macro-path-prelude-fail-1.rs:15:9
+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`
-  --> $DIR/macro-path-prelude-fail-1.rs:16:9
+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