// revisions: current next //[next] compile-flags: -Ztrait-solver=next 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] }