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