1 error[E0308]: mismatched types
2 --> $DIR/variance-invariant-arg-object.rs:11:5
7 = note: expected trait object `dyn Get<&'min i32>`
8 found trait object `dyn Get<&'max i32>`
9 note: the lifetime `'min` as defined on the function body at 7:21...
10 --> $DIR/variance-invariant-arg-object.rs:7:21
12 LL | fn get_min_from_max<'min, 'max>(v: Box<dyn Get<&'max i32>>)
14 note: ...does not necessarily outlive the lifetime `'max` as defined on the function body at 7:27
15 --> $DIR/variance-invariant-arg-object.rs:7:27
17 LL | fn get_min_from_max<'min, 'max>(v: Box<dyn Get<&'max i32>>)
20 error[E0308]: mismatched types
21 --> $DIR/variance-invariant-arg-object.rs:18:5
26 = note: expected trait object `dyn Get<&'max i32>`
27 found trait object `dyn Get<&'min i32>`
28 note: the lifetime `'min` as defined on the function body at 14:21...
29 --> $DIR/variance-invariant-arg-object.rs:14:21
31 LL | fn get_max_from_min<'min, 'max, G>(v: Box<dyn Get<&'min i32>>)
33 note: ...does not necessarily outlive the lifetime `'max` as defined on the function body at 14:27
34 --> $DIR/variance-invariant-arg-object.rs:14:27
36 LL | fn get_max_from_min<'min, 'max, G>(v: Box<dyn Get<&'min i32>>)
39 error: aborting due to 2 previous errors
41 For more information about this error, try `rustc --explain E0308`.