summary refs log tree commit diff
path: root/src/test/ui/issue-16922.stderr
blob: cf81d4b4d08b731b6cba33c7ef765a7760c4cdd4 (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:14:5
   |
LL | fn foo<T: Any>(value: &T) -> Box<Any> {
   |                ----- consider changing the type of `value` to `&'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`.