1 error: unsatisfied lifetime constraints
2 --> $DIR/variance-invariant-arg-object.rs:21:5
4 LL | fn get_min_from_max<'min, 'max>(v: Box<Get<&'max i32>>)
5 | ---- ---- lifetime `'max` defined here
7 | lifetime `'min` defined here
9 LL | v //~ ERROR mismatched types
10 | ^ returning this value requires that `'min` must outlive `'max`
12 error: unsatisfied lifetime constraints
13 --> $DIR/variance-invariant-arg-object.rs:28:5
15 LL | fn get_max_from_min<'min, 'max, G>(v: Box<Get<&'min i32>>)
16 | ---- ---- lifetime `'max` defined here
18 | lifetime `'min` defined here
20 LL | v //~ ERROR mismatched types
21 | ^ returning this value requires that `'min` must outlive `'max`
23 error: aborting due to 2 previous errors