]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/ty-outlives/wf-unreachable.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / nll / ty-outlives / wf-unreachable.stderr
CommitLineData
9fa01778
XL
1error: lifetime may not live long enough
2 --> $DIR/wf-unreachable.rs:8:12
3 |
4LL | fn uninit<'a>() {
5 | -- lifetime `'a` defined here
6LL | return;
532ac7d7 7LL | let x: &'static &'a ();
9fa01778 8 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
60c5eb7d
XL
9 |
10 = help: consider replacing `'a` with `'static`
9fa01778
XL
11
12error: lifetime may not live long enough
13 --> $DIR/wf-unreachable.rs:13:12
14 |
15LL | fn var_type<'a>() {
16 | -- lifetime `'a` defined here
17LL | return;
532ac7d7 18LL | let x: &'static &'a () = &&();
9fa01778 19 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
60c5eb7d
XL
20 |
21 = help: consider replacing `'a` with `'static`
9fa01778
XL
22
23error: lifetime may not live long enough
24 --> $DIR/wf-unreachable.rs:17:12
25 |
26LL | fn uninit_infer<'a>() {
27 | -- lifetime `'a` defined here
532ac7d7 28LL | let x: &'static &'a _;
9fa01778 29 | ^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
60c5eb7d
XL
30 |
31 = help: consider replacing `'a` with `'static`
9fa01778
XL
32
33error: lifetime may not live long enough
34 --> $DIR/wf-unreachable.rs:23:12
35 |
36LL | fn infer<'a>() {
37 | -- lifetime `'a` defined here
38LL | return;
532ac7d7 39LL | let x: &'static &'a _ = &&();
9fa01778 40 | ^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
60c5eb7d
XL
41 |
42 = help: consider replacing `'a` with `'static`
9fa01778
XL
43
44error: lifetime may not live long enough
45 --> $DIR/wf-unreachable.rs:28:12
46 |
47LL | fn uninit_no_var<'a>() {
48 | -- lifetime `'a` defined here
49LL | return;
532ac7d7 50LL | let _: &'static &'a ();
9fa01778 51 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
60c5eb7d
XL
52 |
53 = help: consider replacing `'a` with `'static`
9fa01778
XL
54
55error: lifetime may not live long enough
56 --> $DIR/wf-unreachable.rs:33:12
57 |
58LL | fn no_var<'a>() {
59 | -- lifetime `'a` defined here
60LL | return;
532ac7d7 61LL | let _: &'static &'a () = &&();
9fa01778 62 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
60c5eb7d
XL
63 |
64 = help: consider replacing `'a` with `'static`
9fa01778
XL
65
66error: lifetime may not live long enough
67 --> $DIR/wf-unreachable.rs:38:12
68 |
69LL | fn infer_no_var<'a>() {
70 | -- lifetime `'a` defined here
71LL | return;
532ac7d7 72LL | let _: &'static &'a _ = &&();
9fa01778 73 | ^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
60c5eb7d
XL
74 |
75 = help: consider replacing `'a` with `'static`
9fa01778
XL
76
77error: lifetime may not live long enough
78 --> $DIR/wf-unreachable.rs:51:12
79 |
80LL | fn required_substs<'a>() {
81 | -- lifetime `'a` defined here
82LL | return;
532ac7d7 83LL | let _: C<'static, 'a, _> = C((), &(), &());
9fa01778 84 | ^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
60c5eb7d
XL
85 |
86 = help: consider replacing `'a` with `'static`
9fa01778
XL
87
88error: aborting due to 8 previous errors
89