Files
rust/src/test/ui/variance/variance-trait-matching.stderr

13 lines
474 B
Plaintext
Raw Normal View History

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`
...
2018-12-25 08:56:47 -07:00
LL | pick(get, &22) //~ ERROR explicit lifetime required in the type of `get` [E0621]
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`.