use std::any::Any; fn foo(value: &T) -> Box { Box::new(value) as Box //~^ ERROR explicit lifetime required in the type of `value` [E0621] } fn main() { let _ = foo(&5); }