// regression test for an ICE: https://github.com/rust-lang/miri/issues/3282 trait Id { type Assoc: ?Sized; } impl Id for T { type Assoc = T; } #[repr(transparent)] struct Foo { field: ::Assoc, } fn main() { let x = unsafe { std::mem::transmute::)>(|_| ()) }; let foo: &Foo = unsafe { &*("uwu" as *const str as *const Foo) }; x(foo); }