]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-trait-matching.nll.stderr
Change NLL compare mode to borrowck=migrate.
[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:34: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) //~ ERROR 34:5: 34:9: explicit lifetime required in the type of `get` [E0621]
8    |     ^^^^^^^^^^^^^^ lifetime `'a` required
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0621`.