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
189 B
Rust
Raw Normal View History

2020-12-28 11:15:16 -06: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() {}