1 error[E0621]: explicit lifetime required in the type of `value`
2 --> $DIR/issue-16922.rs:14:5
4 LL | fn foo<T: Any>(value: &T) -> Box<Any> {
5 | -- help: add explicit lifetime `'static` to the type of `value`: `&'static T`
6 LL | Box::new(value) as Box<Any>
7 | ^^^^^^^^^^^^^^^ lifetime `'static` required
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0621`.