1 error: lifetime may not live long enough
2 --> $DIR/variance-use-invariant-struct-1.rs:12:5
4 LL | fn foo<'min,'max>(v: SomeStruct<&'max ()>)
5 | ---- ---- lifetime `'max` defined here
7 | lifetime `'min` defined here
10 | ^ returning this value requires that `'min` must outlive `'max`
12 error: lifetime may not live long enough
13 --> $DIR/variance-use-invariant-struct-1.rs:19:5
15 LL | fn bar<'min,'max>(v: SomeStruct<&'min ()>)
16 | ---- ---- lifetime `'max` defined here
18 | lifetime `'min` defined here
21 | ^ returning this value requires that `'min` must outlive `'max`
23 error: aborting due to 2 previous errors