]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
04454e1e | 2 | --> $DIR/regions-bounds.rs:13:12 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | return e; |
b7449926 XL |
5 | | ^ lifetime mismatch |
6 | | | |
60c5eb7d XL |
7 | = note: expected struct `TupleStruct<'b>` |
8 | found struct `TupleStruct<'a>` | |
c295e0f8 | 9 | note: the lifetime `'a` as defined here... |
04454e1e | 10 | --> $DIR/regions-bounds.rs:12:10 |
b7449926 | 11 | | |
0731742a | 12 | LL | fn a_fn1<'a,'b>(e: TupleStruct<'a>) -> TupleStruct<'b> { |
b7449926 | 13 | | ^^ |
c295e0f8 | 14 | note: ...does not necessarily outlive the lifetime `'b` as defined here |
04454e1e | 15 | --> $DIR/regions-bounds.rs:12:13 |
b7449926 | 16 | | |
0731742a | 17 | LL | fn a_fn1<'a,'b>(e: TupleStruct<'a>) -> TupleStruct<'b> { |
b7449926 XL |
18 | | ^^ |
19 | ||
20 | error[E0308]: mismatched types | |
04454e1e | 21 | --> $DIR/regions-bounds.rs:19:12 |
b7449926 | 22 | | |
532ac7d7 | 23 | LL | return e; |
b7449926 XL |
24 | | ^ lifetime mismatch |
25 | | | |
60c5eb7d XL |
26 | = note: expected struct `Struct<'b>` |
27 | found struct `Struct<'a>` | |
c295e0f8 | 28 | note: the lifetime `'a` as defined here... |
04454e1e | 29 | --> $DIR/regions-bounds.rs:18:10 |
b7449926 | 30 | | |
0731742a | 31 | LL | fn a_fn3<'a,'b>(e: Struct<'a>) -> Struct<'b> { |
b7449926 | 32 | | ^^ |
c295e0f8 | 33 | note: ...does not necessarily outlive the lifetime `'b` as defined here |
04454e1e | 34 | --> $DIR/regions-bounds.rs:18:13 |
b7449926 | 35 | | |
0731742a | 36 | LL | fn a_fn3<'a,'b>(e: Struct<'a>) -> Struct<'b> { |
b7449926 XL |
37 | | ^^ |
38 | ||
39 | error: aborting due to 2 previous errors | |
40 | ||
41 | For more information about this error, try `rustc --explain E0308`. |