rust/tests/ui/panic-handler/panic-handler-missing.rs
2024-02-16 20:02:50 +00:00

10 lines
189 B
Rust

//@ 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() {}