mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
16 lines
322 B
Rust
16 lines
322 B
Rust
|
//@ error-pattern:unwinding panics are not supported without std
|
||
|
//@ needs-unwind
|
||
|
//@ compile-flags: -Cpanic=unwind
|
||
|
|
||
|
// Make sure that we don't emit an error message mentioning internal lang items.
|
||
|
|
||
|
#![no_std]
|
||
|
#![no_main]
|
||
|
|
||
|
#[panic_handler]
|
||
|
fn handler(_info: &core::panic::PanicInfo<'_>) -> ! {
|
||
|
loop {}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|