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