about summary refs log tree commit diff
path: root/tests/ui/no_std/no-std-no-start-binary.rs
blob: 6853e2d4228ff2fce2c9f29086f463c2e22e3d0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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