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