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