2018-08-08 14:28:26 +02:00
|
|
|
error[E0621]: explicit lifetime required in the type of `get`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/variance-trait-matching.rs:24:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | fn get<'a, G>(get: &G) -> i32
|
|
|
|
|
| -- help: add explicit lifetime `'a` to the type of `get`: `&'a G`
|
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | pick(get, &22)
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^ lifetime `'a` required
|
|
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0621`.
|