Closed
Description
use std::collections::HashMap;
use std::mem::size_of;
struct S {
_handlers: HashMap<usize, usize>,
}
fn main() {
println!("{}", size_of::<S>());
}
godot2:tmp jdm$ rustup override set nightly-2017-02-16
info: using existing install for 'nightly-2017-02-16-x86_64-apple-darwin'
info: override toolchain for '/private/tmp' set to 'nightly-2017-02-16-x86_64-apple-darwin'
nightly-2017-02-16-x86_64-apple-darwin unchanged - rustc 1.17.0-nightly (62eb6056d 2017-02-15)
godot2:tmp jdm$ rustc node.rs
godot2:tmp jdm$ ./node
40
godot2:tmp jdm$ rustup override set nightly-2017-02-17
info: using existing install for 'nightly-2017-02-17-x86_64-apple-darwin'
info: override toolchain for '/private/tmp' set to 'nightly-2017-02-17-x86_64-apple-darwin'
nightly-2017-02-17-x86_64-apple-darwin unchanged - rustc 1.17.0-nightly (668864d9e 2017-02-16)
godot2:tmp jdm$ rustc node.rs
godot2:tmp jdm$ ./node
48
Metadata
Metadata
Assignees
Labels
No labels