rust/tests/ui/panic-handler/panic-handler-missing.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
187 B
Rust
Raw Normal View History

2020-12-29 01:15:16 +08:00
// 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() {}