1 #![feature(start, box_syntax, alloc_system, core_intrinsics, alloc, alloc_error_handler)]
5 extern crate alloc_system;
9 use alloc_system::System;
12 static ALLOC: System = System;
16 fn puts(s: *const u8);
20 fn panic_handler(_: &core::panic::PanicInfo) -> ! {
22 core::intrinsics::abort();
26 #[alloc_error_handler]
27 fn alloc_error_handler(_: alloc::alloc::Layout) -> ! {
29 core::intrinsics::abort();
34 fn main(_argc: isize, _argv: *const *const u8) -> isize {
35 let world: Box<&str> = box "Hello World!\0";
37 puts(*world as *const str as *const u8);