Created
August 25, 2019 17:31
-
-
Save rust-play/aa485a0dbd2a217ff0ec1761ac30170a to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
println!("{}", std::mem::size_of::<Box<i32>>()); | |
println!("{}", std::mem::size_of::<Box<[i32; 42]>>()); | |
println!("{}", std::mem::size_of::<Box<[i32]>>()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment