This commit is contained in:
Carl Fredrik Samson
2020-01-25 17:46:03 +01:00
parent a6ff214603
commit a9aea4afbf

View File

@@ -36,11 +36,7 @@ run the following code:
```rust ```rust
# use std::mem::size_of; # use std::mem::size_of;
trait SomeTrait { trait SomeTrait { }
fn method(&self) {
todo!();
}
}
fn main() { fn main() {
println!("Size of Box<i32>: {}", size_of::<Box<i32>>()); println!("Size of Box<i32>: {}", size_of::<Box<i32>>());