LL | v
| ^ lifetime mismatch
|
- = note: expected type `SomeStruct<&'min ()>`
- found type `SomeStruct<&'max ()>`
+ = note: expected struct `SomeStruct<&'min ()>`
+ found struct `SomeStruct<&'max ()>`
note: the lifetime `'min` as defined on the function body at 8:8...
--> $DIR/variance-use-invariant-struct-1.rs:8:8
|
LL | v
| ^ lifetime mismatch
|
- = note: expected type `SomeStruct<&'max ()>`
- found type `SomeStruct<&'min ()>`
+ = note: expected struct `SomeStruct<&'max ()>`
+ found struct `SomeStruct<&'min ()>`
note: the lifetime `'min` as defined on the function body at 15:8...
--> $DIR/variance-use-invariant-struct-1.rs:15:8
|