1 error[E0308]: mismatched types
2 --> $DIR/variance-invariant-arg-trait-match.rs:10:5
4 LL | impls_get::<G,&'min i32>()
5 | ^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
7 = note: expected type `Get<&'min i32>`
8 found type `Get<&'max i32>`
9 note: the lifetime `'min` as defined here...
10 --> $DIR/variance-invariant-arg-trait-match.rs:7:21
12 LL | fn get_min_from_max<'min, 'max, G>()
14 note: ...does not necessarily outlive the lifetime `'max` as defined here
15 --> $DIR/variance-invariant-arg-trait-match.rs:7:27
17 LL | fn get_min_from_max<'min, 'max, G>()
20 error[E0308]: mismatched types
21 --> $DIR/variance-invariant-arg-trait-match.rs:16:5
23 LL | impls_get::<G,&'max i32>()
24 | ^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
26 = note: expected type `Get<&'max i32>`
27 found type `Get<&'min i32>`
28 note: the lifetime `'min` as defined here...
29 --> $DIR/variance-invariant-arg-trait-match.rs:13:21
31 LL | fn get_max_from_min<'min, 'max, G>()
33 note: ...does not necessarily outlive the lifetime `'max` as defined here
34 --> $DIR/variance-invariant-arg-trait-match.rs:13:27
36 LL | fn get_max_from_min<'min, 'max, G>()
39 error: aborting due to 2 previous errors
41 For more information about this error, try `rustc --explain E0308`.