// revisions: current next //[next] compile-flags: -Znext-solver struct Test { func: Box, } fn main() { let closure: Box = Box::new(|| ()); let test = Box::new(Test { func: closure }); //~ ERROR trait upcasting coercion is experimental [E0658] }