rust/tests/ui/no_std/no-std-no-start-binary.rs
2025-04-13 21:48:53 +03:00

14 lines
297 B
Rust

//@ compile-flags: -Cpanic=abort --emit link
// 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() {}
//~? ERROR using `fn main` requires the standard library