diff --git a/risc_v/ch3/src/lib.rs b/risc_v/ch3/src/lib.rs index b342d5a..645c975 100755 --- a/risc_v/ch3/src/lib.rs +++ b/risc_v/ch3/src/lib.rs @@ -107,7 +107,7 @@ fn kmain() { println!("Memory = 0x{:x}", m); { // We have the global allocator, so let's see if that works! - let k = Box::::new(100); + let k: u32 = Box::new(100); println!("Boxed value = {}", *k); // The following comes from the Rust documentation: // some bytes, in a vector