rust/tests/ui/panic-handler/panic-handler-requires-panic-info.rs

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

16 lines
256 B
Rust
Raw Normal View History

2018-04-30 10:55:24 +02:00
// compile-flags:-C panic=abort
// error-pattern: language item required, but not found: `panic_info`
#![feature(lang_items)]
#![feature(no_core)]
#![no_core]
#![no_main]
#[panic_handler]
2018-04-30 10:55:24 +02:00
fn panic() -> ! {
loop {}
}
#[lang = "sized"]
trait Sized {}