//@ known-bug: rust-lang/rust#126982 #![feature(coerce_unsized)] use std::ops::CoerceUnsized; struct Foo { a: T, } impl CoerceUnsized for Foo {} union U { a: usize, } const C: U = Foo { a: 10 }; fn main() {}