]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error: lifetime may not live long enough |
923072b8 | 2 | --> $DIR/variance-use-contravariant-struct-1.rs:10:5 |
48663c56 XL |
3 | | |
4 | LL | fn foo<'min,'max>(v: SomeStruct<&'max ()>) | |
5 | | ---- ---- lifetime `'max` defined here | |
6 | | | | |
7 | | lifetime `'min` defined here | |
8 | ... | |
9 | LL | v | |
5099ac24 | 10 | | ^ function was supposed to return data with lifetime `'max` but it is returning data with lifetime `'min` |
60c5eb7d XL |
11 | | |
12 | = help: consider adding the following bound: `'min: 'max` | |
48663c56 XL |
13 | |
14 | error: aborting due to previous error | |
15 |