error: lifetime may not live long enough
- --> $DIR/variance-covariant-arg-object.rs:15:5
+ --> $DIR/variance-covariant-arg-object.rs:19:5
|
LL | fn get_min_from_max<'min, 'max>(v: Box<dyn Get<&'max i32>>)
| ---- ---- lifetime `'max` defined here
= help: consider adding the following bound: `'min: 'max`
error: lifetime may not live long enough
- --> $DIR/variance-covariant-arg-object.rs:22:5
+ --> $DIR/variance-covariant-arg-object.rs:28:5
|
LL | fn get_max_from_min<'min, 'max, G>(v: Box<dyn Get<&'min i32>>)
| ---- ---- lifetime `'max` defined here