// check-pass // 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 }); }