]> git.lizzy.rs Git - rust.git/blob - src/test/ui/variance/variance-invariant-arg-trait-match.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / variance / variance-invariant-arg-trait-match.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/variance-invariant-arg-trait-match.rs:20:5
3    |
4 LL | fn get_min_from_max<'min, 'max, G>()
5    |                     ----  ---- lifetime `'max` defined here
6    |                     |
7    |                     lifetime `'min` defined here
8 ...
9 LL |     impls_get::<G,&'min i32>() //~ ERROR mismatched types
10    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'min` must outlive `'max`
11
12 error: unsatisfied lifetime constraints
13   --> $DIR/variance-invariant-arg-trait-match.rs:26:5
14    |
15 LL | fn get_max_from_min<'min, 'max, G>()
16    |                     ----  ---- lifetime `'max` defined here
17    |                     |
18    |                     lifetime `'min` defined here
19 ...
20 LL |     impls_get::<G,&'max i32>() //~ ERROR mismatched types
21    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'min` must outlive `'max`
22
23 error: aborting due to 2 previous errors
24