]> git.proxmox.com Git - rustc.git/blob - src/test/ui/regions/regions-bounds.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-bounds.nll.stderr
1 error: lifetime may not live long enough
2 --> $DIR/regions-bounds.rs:9:12
3 |
4 LL | fn a_fn1<'a,'b>(e: TupleStruct<'a>) -> TupleStruct<'b> {
5 | -- -- lifetime `'b` defined here
6 | |
7 | lifetime `'a` defined here
8 LL | return e;
9 | ^ returning this value requires that `'a` must outlive `'b`
10 |
11 = help: consider adding the following bound: `'a: 'b`
12
13 error: lifetime may not live long enough
14 --> $DIR/regions-bounds.rs:13:12
15 |
16 LL | fn a_fn3<'a,'b>(e: Struct<'a>) -> Struct<'b> {
17 | -- -- lifetime `'b` defined here
18 | |
19 | lifetime `'a` defined here
20 LL | return e;
21 | ^ returning this value requires that `'a` must outlive `'b`
22 |
23 = help: consider adding the following bound: `'a: 'b`
24
25 error: aborting due to 2 previous errors
26