diff options
Diffstat (limited to 'src/kernel.rs')
-rw-r--r-- | src/kernel.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/kernel.rs b/src/kernel.rs index 321f34c..b0c5104 100644 --- a/src/kernel.rs +++ b/src/kernel.rs @@ -17,6 +17,7 @@ #![no_std] extern crate alloc; +use alloc::boxed::Box; mod mem; mod console; @@ -58,5 +59,13 @@ fn kernel_main() -> ! { } } println!("I should be able to print {} here!", 5); + { + let a: Box<u8> = Box::new(5); + let b: Box<u8> = Box::new(5); + let c: Box<(u8,u8,u8)> = Box::new((3,5,8)); + println!("{:?}", a); + println!("{:?}", b); + println!("{:?}", c); + } loop { } } |