error[E0512]: transmute called with types of different sizes --> $DIR/packed-struct-transmute.rs:36:24 | LL | let oof: Oof = mem::transmute(foo); | ^^^^^^^^^^^^^^ | = note: source type: Foo (N bits) = note: target type: Oof (N bits) error: aborting due to previous error For more information about this error, try `rustc --explain E0512`.