1 #![no_std] // <1> 2 #![no_main] // <1> 3 #![feature(core_intrinsics)] // <2> 4 #![feature(alloc_error_handler)] 5 #![feature(panic_info_message)] 6 7 #[allow(non_upper_case_globals)] 8 #[allow(non_camel_case_types)] 9 #[allow(non_snake_case)] 10 11 12 use core::panic::PanicInfo; 13 #[panic_handler] panic(_info: &PanicInfo) -> !14fn panic(_info: &PanicInfo) -> ! { 15 loop {} 16 } 17 18 #[no_mangle] scanf()19pub extern "C" fn scanf() { 20 21 } 22