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 use core::panic::PanicInfo;
11 
12 use include::internal::bindings::bindings::putchar;
13 
14 mod include;
15 
16 #[panic_handler]
panic(_info: &PanicInfo) -> !17 fn panic(_info: &PanicInfo) -> ! {
18     loop {}
19 }
20 
21 #[no_mangle]
scanf()22 pub extern "C" fn scanf() {
23     loop {
24         unsafe {
25             putchar(88);
26         }
27     }
28 }
29