summaryrefslogtreecommitdiffstats
path: root/src/test/ui/crate-loading/missing-std.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/crate-loading/missing-std.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/crate-loading/missing-std.rs b/src/test/ui/crate-loading/missing-std.rs
new file mode 100644
index 000000000..400d9f6e0
--- /dev/null
+++ b/src/test/ui/crate-loading/missing-std.rs
@@ -0,0 +1,12 @@
+// compile-flags: --target x86_64-unknown-uefi
+// needs-llvm-components: x86
+// rustc-env:CARGO=/usr/bin/cargo
+#![feature(no_core)]
+#![no_core]
+extern crate core;
+//~^ ERROR can't find crate for `core`
+//~| NOTE can't find crate
+//~| NOTE target may not be installed
+//~| HELP consider building the standard library from source with `cargo build -Zbuild-std`
+//~| HELP consider downloading the target with `rustup target add x86_64-unknown-uefi`
+fn main() {}