]> git.lizzy.rs Git - rust.git/blob - tests/ui/panic-handler/panic-handler-requires-panic-info.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / panic-handler / panic-handler-requires-panic-info.rs
1 // compile-flags:-C panic=abort
2 // error-pattern: language item required, but not found: `panic_info`
3
4 #![feature(lang_items)]
5 #![feature(no_core)]
6 #![no_core]
7 #![no_main]
8
9 #[panic_handler]
10 fn panic() -> ! {
11     loop {}
12 }
13
14 #[lang = "sized"]
15 trait Sized {}