]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0621]: explicit lifetime required in the type of `get` |
04454e1e | 2 | --> $DIR/variance-trait-matching.rs:28:5 |
b7449926 XL |
3 | | |
4 | LL | fn get<'a, G>(get: &G) -> i32 | |
5 | | -- help: add explicit lifetime `'a` to the type of `get`: `&'a G` | |
6 | ... | |
532ac7d7 | 7 | LL | pick(get, &22) |
b7449926 XL |
8 | | ^^^^ lifetime `'a` required |
9 | ||
10 | error: aborting due to previous error | |
11 | ||
12 | For more information about this error, try `rustc --explain E0621`. |