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] panic() -> !10 fn panic() -> ! { 11 loop {} 12 } 13 14 #[lang = "sized"] 15 trait Sized {} 16