summary refs log tree commit diff
path: root/tests/ui/panic-handler/panic-handler-requires-panic-info.rs
blob: b59023b50e1e0d98db070924409abfd62c0ddb54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// compile-flags:-C panic=abort

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

#[panic_handler]
fn panic() -> ! {
    //~^ ERROR requires `panic_info` lang_item
    loop {}
}

#[lang = "sized"]
trait Sized {}