]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-trait-matching.nll.stderr
More nll revisions
[rust.git] / src / test / ui / variance / variance-trait-matching.nll.stderr
1 error[E0621]: explicit lifetime required in the type of `get`
2   --> $DIR/variance-trait-matching.rs:28:5
3    |
4 LL | fn get<'a, G>(get: &G) -> i32
5    |                    -- help: add explicit lifetime `'a` to the type of `get`: `&'a G`
6 ...
7 LL |     pick(get, &22)
8    |     ^^^^^^^^^^^^^^ lifetime `'a` required
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0621`.