// check-pass #![feature(type_changing_struct_update)] #![allow(incomplete_features)] use std::any::Any; struct Foo { a: A, b: Box, c: Box, } struct B; struct C; fn main() { let y = Foo:: { a: 0, b: Box::new(B), ..Foo { a: 0, b: Box::new(B), // C needs to be told to coerce to `Box` c: Box::new(C), } }; }