summaryrefslogtreecommitdiffstats
path: root/tests/ui/panic-handler/panic-handler-missing.rs
blob: 6bb062ba657a157b62f1bcd2205da178416a5640 (plain)
1
2
3
4
5
6
7
8
9
// dont-check-compiler-stderr
// error-pattern: `#[panic_handler]` function required, but not found

#![feature(lang_items)]
#![no_main]
#![no_std]

#[lang = "eh_personality"]
fn eh() {}