summary refs log tree commit diff
path: root/src/test/ui/issues/issue-16922.stderr
blob: 1f3b3fe739c4420c3db599680c70f94550e776de (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0621]: explicit lifetime required in the type of `value`
  --> $DIR/issue-16922.rs:4:5
   |
LL | fn foo<T: Any>(value: &T) -> Box<Any> {
   |                       -- help: add explicit lifetime `'static` to the type of `value`: `&'static T`
LL |     Box::new(value) as Box<Any>
   |     ^^^^^^^^^^^^^^^ lifetime `'static` required

error: aborting due to previous error

For more information about this error, try `rustc --explain E0621`.