error: transmute from `Ty2` which has an undefined layout --> $DIR/transmute_undefined_repr.rs:23:33 | LL | let _: Ty2C = core::mem::transmute(value::>()); // Lint, Ty2 is unordered | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::transmute-undefined-repr` implied by `-D warnings` error: transmute into `Ty2` which has an undefined layout --> $DIR/transmute_undefined_repr.rs:24:32 | LL | let _: Ty2 = core::mem::transmute(value::>()); // Lint, Ty2 is unordered | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: transmute from `Ty>` to `Ty2`, both of which have an undefined layout --> $DIR/transmute_undefined_repr.rs:29:32 | LL | let _: Ty2 = core::mem::transmute(value::>>()); // Lint, different Ty2 instances | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: two instances of the same generic type (`Ty2`) may have different layouts error: transmute from `Ty2` to `Ty>`, both of which have an undefined layout --> $DIR/transmute_undefined_repr.rs:30:36 | LL | let _: Ty> = core::mem::transmute(value::>()); // Lint, different Ty2 instances | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: two instances of the same generic type (`Ty2`) may have different layouts error: transmute to `&Ty2` which has an undefined layout --> $DIR/transmute_undefined_repr.rs:35:33 | LL | let _: &Ty2 = core::mem::transmute(value::>>()); // Lint, different Ty2 instances | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: transmute from `&Ty2` which has an undefined layout --> $DIR/transmute_undefined_repr.rs:36:37 | LL | let _: Ty<&Ty2> = core::mem::transmute(value::<&Ty2>()); // Lint, different Ty2 instances | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 6 previous errors