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