mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
14 lines
303 B
Rust
14 lines
303 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() {}
|