rust/tests/ui/crate-loading/missing-std-tier-3.rs
Noratrieb 7898df42b9 Improve missing core error for tier 3 targets
Tier 3 targets can't be installed via rustup, so don't recommend that.
Additionally, do recommend build-std on stable because it's the
recommended way to use these targets, people should switch to nightly.
2025-12-27 13:17:28 +01:00

14 lines
474 B
Rust

// Ensure that we do not recommend rustup installing tier 3 targets.
//@ compile-flags: --target m68k-unknown-linux-gnu
//@ needs-llvm-components: m68k
//@ rustc-env:CARGO_CRATE_NAME=foo
//@ ignore-backends: gcc
#![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`
fn main() {}