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