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