1 error: lifetime may not live long enough
2 --> $DIR/wf-unreachable.rs:8:12
5 | -- lifetime `'a` defined here
7 LL | let x: &'static &'a ();
8 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
10 error: lifetime may not live long enough
11 --> $DIR/wf-unreachable.rs:13:12
13 LL | fn var_type<'a>() {
14 | -- lifetime `'a` defined here
16 LL | let x: &'static &'a () = &&();
17 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
19 error: lifetime may not live long enough
20 --> $DIR/wf-unreachable.rs:17:12
22 LL | fn uninit_infer<'a>() {
23 | -- lifetime `'a` defined here
24 LL | let x: &'static &'a _;
25 | ^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
27 error: lifetime may not live long enough
28 --> $DIR/wf-unreachable.rs:23:12
31 | -- lifetime `'a` defined here
33 LL | let x: &'static &'a _ = &&();
34 | ^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
36 error: lifetime may not live long enough
37 --> $DIR/wf-unreachable.rs:28:12
39 LL | fn uninit_no_var<'a>() {
40 | -- lifetime `'a` defined here
42 LL | let _: &'static &'a ();
43 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
45 error: lifetime may not live long enough
46 --> $DIR/wf-unreachable.rs:33:12
48 LL | fn no_var<'a>() {
49 | -- lifetime `'a` defined here
51 LL | let _: &'static &'a () = &&();
52 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
54 error: lifetime may not live long enough
55 --> $DIR/wf-unreachable.rs:38:12
57 LL | fn infer_no_var<'a>() {
58 | -- lifetime `'a` defined here
60 LL | let _: &'static &'a _ = &&();
61 | ^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
63 error: lifetime may not live long enough
64 --> $DIR/wf-unreachable.rs:51:12
66 LL | fn required_substs<'a>() {
67 | -- lifetime `'a` defined here
69 LL | let _: C<'static, 'a, _> = C((), &(), &());
70 | ^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
72 error: aborting due to 8 previous errors