]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2126-extern-in-paths/non-existent-3.stderr
rustc_resolve: don't allow `::crate_name` to bypass `extern_prelude`.
[rust.git] / src / test / ui / rfc-2126-extern-in-paths / non-existent-3.stderr
index fbea89ae93a97b8d4b8b451bb4c2a47c38d9d38b..0a49d1721695bd364bf059810f8857916c09b58c 100644 (file)
@@ -1,9 +1,9 @@
-error[E0463]: can't find crate for `ycrate`
-  --> $DIR/non-existent-3.rs:13:13
+error[E0432]: unresolved import `extern::ycrate`
+  --> $DIR/non-existent-3.rs:13:5
    |
-LL | use extern::ycrate; //~ ERROR can't find crate for `ycrate`
-   |             ^^^^^^ can't find crate
+LL | use extern::ycrate; //~ ERROR unresolved import `extern::ycrate`
+   |     ^^^^^^^^^^^^^^ no `ycrate` external crate
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0463`.
+For more information about this error, try `rustc --explain E0432`.