]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-free-region-ordering-caller.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-free-region-ordering-caller.nll.stderr
CommitLineData
9fa01778
XL
1error: lifetime may not live long enough
2 --> $DIR/regions-free-region-ordering-caller.rs:11:12
3 |
4LL | fn call2<'a, 'b>(a: &'a usize, b: &'b usize) {
5 | -- -- lifetime `'b` defined here
6 | |
7 | lifetime `'a` defined here
532ac7d7 8LL | let z: Option<&'b &'a usize> = None;
9fa01778 9 | ^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'b`
60c5eb7d
XL
10 |
11 = help: consider adding the following bound: `'a: 'b`
9fa01778
XL
12
13error: lifetime may not live long enough
14 --> $DIR/regions-free-region-ordering-caller.rs:17:12
15 |
16LL | fn call3<'a, 'b>(a: &'a usize, b: &'b usize) {
17 | -- -- lifetime `'b` defined here
18 | |
19 | lifetime `'a` defined here
20LL | let y: Paramd<'a> = Paramd { x: a };
532ac7d7 21LL | let z: Option<&'b Paramd<'a>> = None;
9fa01778 22 | ^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'b`
60c5eb7d
XL
23 |
24 = help: consider adding the following bound: `'a: 'b`
9fa01778
XL
25
26error: lifetime may not live long enough
27 --> $DIR/regions-free-region-ordering-caller.rs:22:12
28 |
29LL | fn call4<'a, 'b>(a: &'a usize, b: &'b usize) {
30 | -- -- lifetime `'b` defined here
31 | |
32 | lifetime `'a` defined here
532ac7d7 33LL | let z: Option<&'a &'b usize> = None;
9fa01778 34 | ^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
60c5eb7d
XL
35 |
36 = help: consider adding the following bound: `'b: 'a`
9fa01778
XL
37
38error: aborting due to 3 previous errors
39