1 error: lifetime may not live long enough
2 --> $DIR/variance-use-contravariant-struct-1.rs:14:5
4 LL | fn foo<'min,'max>(v: SomeStruct<&'max ()>)
5 | ---- ---- lifetime `'max` defined here
7 | lifetime `'min` defined here
10 | ^ function was supposed to return data with lifetime `'max` but it is returning data with lifetime `'min`
12 = help: consider adding the following bound: `'min: 'max`
14 error: aborting due to previous error