]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail/auxiliary/panic-runtime-lang-items.rs
Auto merge of #57118 - Zoxc:query-stats, r=wesleywiser
[rust.git] / src / test / compile-fail / auxiliary / panic-runtime-lang-items.rs
1 // no-prefer-dynamic
2
3 #![crate_type = "rlib"]
4
5 #![no_std]
6 #![feature(lang_items)]
7
8 use core::panic::PanicInfo;
9
10 #[lang = "panic_impl"]
11 fn panic_impl(info: &PanicInfo) -> ! { loop {} }
12 #[lang = "eh_personality"]
13 fn eh_personality() {}
14 #[lang = "eh_unwind_resume"]
15 fn eh_unwind_resume() {}