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 = help: consider adding the following bound: `'min: 'max`
14 error: lifetime may not live long enough
15 --> $DIR/variance-use-invariant-struct-1.rs:19:5
17 LL | fn bar<'min,'max>(v: SomeStruct<&'min ()>)
18 | ---- ---- lifetime `'max` defined here
20 | lifetime `'min` defined here
23 | ^ returning this value requires that `'min` must outlive `'max`
25 = help: consider adding the following bound: `'min: 'max`
27 error: aborting due to 2 previous errors