blob: ce1c871f6a691aa17a778d1d2e109ec0bbba94b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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() {}
|