]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-trait-matching.stderr
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
[rust.git] / src / test / ui / variance / variance-trait-matching.stderr
1 error[E0621]: explicit lifetime required in the type of `get`
2   --> $DIR/variance-trait-matching.rs:24: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`.