2024-02-16 14:02:50 -06:00
|
|
|
//@ compile-flags: -Cpanic=abort --emit link
|
|
|
|
//@ error-pattern:using `fn main` requires the standard library
|
2023-10-02 07:32:31 -05:00
|
|
|
|
|
|
|
// 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() {}
|