1 error: lifetime may not live long enough
2 --> $DIR/variance-invariant-arg-object.rs:11:5
4 LL | fn get_min_from_max<'min, 'max>(v: Box<dyn Get<&'max i32>>)
5 | ---- ---- lifetime `'max` defined here
7 | lifetime `'min` defined here
10 | ^ returning this value requires that `'min` must outlive `'max`
12 = help: consider adding the following bound: `'min: 'max`
14 error: lifetime may not live long enough
15 --> $DIR/variance-invariant-arg-object.rs:18:5
17 LL | fn get_max_from_min<'min, 'max, G>(v: Box<dyn Get<&'min i32>>)
18 | ---- ---- lifetime `'max` defined here
20 | lifetime `'min` defined here
23 | ^ returning this value requires that `'min` must outlive `'max`
25 = help: consider adding the following bound: `'min: 'max`
27 error: aborting due to 2 previous errors