error[E0412]: cannot find type `T` in this scope --> $DIR/transmute-to-tail-with-err.rs:3:26 | LL | struct Bar(Box>); | ^ not found in this scope | help: you might be missing a type parameter | LL | struct Bar(Box>); | +++ error[E0512]: cannot transmute between types of different sizes, or dependently-sized types --> $DIR/transmute-to-tail-with-err.rs:7:27 | LL | let x: Bar = unsafe { std::mem::transmute(()) }; | ^^^^^^^^^^^^^^^^^^^ | = note: source type: `()` (0 bits) = note: target type: `Bar` (the type has an unknown layout) error: aborting due to 2 previous errors Some errors have detailed explanations: E0412, E0512. For more information about an error, try `rustc --explain E0412`.