diff --git a/src/23524.rs b/src/23524.rs new file mode 100644 index 00000000..bc3d7f6f --- /dev/null +++ b/src/23524.rs @@ -0,0 +1,21 @@ +enum Tree { + Leaf(K, V), + Branch(u16, [Option>>]), +} + +struct Node { + population: u16, + children: T, +} + +enum Tree2 { + Leaf(K, V), + Branch(Node>), +} + +fn main() { + use std::mem::size_of; + use std::sync::atomic; + println!("{:?}", size_of::<&Tree<(),()>>()); + println!("{:?}", size_of::<&Tree2<(),()>>()); +}