1 error[E0308]: mismatched types
2 --> $DIR/variance-use-covariant-struct-1.rs:10:5
7 = note: expected struct `SomeStruct<&'max ()>`
8 found struct `SomeStruct<&'min ()>`
9 note: the lifetime `'min` as defined on the function body at 6:8...
10 --> $DIR/variance-use-covariant-struct-1.rs:6:8
12 LL | fn foo<'min,'max>(v: SomeStruct<&'min ()>)
14 note: ...does not necessarily outlive the lifetime `'max` as defined on the function body at 6:13
15 --> $DIR/variance-use-covariant-struct-1.rs:6:13
17 LL | fn foo<'min,'max>(v: SomeStruct<&'min ()>)
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0308`.