]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-16922.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / issues / issue-16922.stderr
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> {
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
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0621`.