rustc/tests/ui/no_std/no-std-no-start-binary.rs
2024-06-19 10:24:51 +02:00

14 lines
301 B
Rust

// compile-flags: -Cpanic=abort --emit link
// error-pattern:using `fn main` requires the standard library
// Make sure that we don't emit an error message mentioning internal lang items.
#![no_std]
#[panic_handler]
fn handler(_info: &core::panic::PanicInfo<'_>) -> ! {
loop {}
}
fn main() {}