fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
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; 7LL | let x: &'static &'a (); 8 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static` 9 | 10 = help: consider replacing `'a` with `'static` 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; 18LL | let x: &'static &'a () = &&(); 19 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static` 20 | 21 = help: consider replacing `'a` with `'static` 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 28LL | let x: &'static &'a _; 29 | ^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static` 30 | 31 = help: consider replacing `'a` with `'static` 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; 39LL | let x: &'static &'a _ = &&(); 40 | ^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static` 41 | 42 = help: consider replacing `'a` with `'static` 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; 50LL | let _: &'static &'a (); 51 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static` 52 | 53 = help: consider replacing `'a` with `'static` 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; 61LL | let _: &'static &'a () = &&(); 62 | ^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static` 63 | 64 = help: consider replacing `'a` with `'static` 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; 72LL | let _: &'static &'a _ = &&(); 73 | ^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static` 74 | 75 = help: consider replacing `'a` with `'static` 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; 83LL | let _: C<'static, 'a, _> = C((), &(), &()); 84 | ^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static` 85 | 86 = help: consider replacing `'a` with `'static` 87 88error: aborting due to 8 previous errors 89