2019-01-12 08:55:23 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/wf-unreachable.rs:6:12
|
2019-01-12 08:55:23 -06:00
|
|
|
|
|
|
|
|
LL | fn uninit<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | return;
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let x: &'static &'a ();
|
2022-11-16 04:11:44 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
2018-11-28 15:05:36 -06:00
|
|
|
|
2019-01-12 08:55:23 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/wf-unreachable.rs:11:12
|
2019-01-12 08:55:23 -06:00
|
|
|
|
|
|
|
|
LL | fn var_type<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | return;
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let x: &'static &'a () = &&();
|
2022-11-16 04:11:44 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
2018-11-28 15:05:36 -06:00
|
|
|
|
2019-01-12 08:55:23 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/wf-unreachable.rs:15:12
|
2019-01-12 08:55:23 -06:00
|
|
|
|
|
|
|
|
LL | fn uninit_infer<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let x: &'static &'a _;
|
2022-11-16 04:11:44 -06:00
|
|
|
| ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
2018-11-28 15:05:36 -06:00
|
|
|
|
2019-01-12 08:55:23 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/wf-unreachable.rs:21:12
|
2019-01-12 08:55:23 -06:00
|
|
|
|
|
|
|
|
LL | fn infer<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | return;
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let x: &'static &'a _ = &&();
|
2022-11-16 04:11:44 -06:00
|
|
|
| ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
2018-11-28 15:05:36 -06:00
|
|
|
|
2019-01-12 08:55:23 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/wf-unreachable.rs:26:12
|
2019-01-12 08:55:23 -06:00
|
|
|
|
|
|
|
|
LL | fn uninit_no_var<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | return;
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _: &'static &'a ();
|
2022-11-16 04:11:44 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
2018-11-28 15:05:36 -06:00
|
|
|
|
2019-01-12 08:55:23 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/wf-unreachable.rs:31:12
|
2019-01-12 08:55:23 -06:00
|
|
|
|
|
|
|
|
LL | fn no_var<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | return;
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _: &'static &'a () = &&();
|
2022-11-16 04:11:44 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
2018-11-28 15:05:36 -06:00
|
|
|
|
2019-01-12 08:55:23 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/wf-unreachable.rs:36:12
|
2019-01-12 08:55:23 -06:00
|
|
|
|
|
|
|
|
LL | fn infer_no_var<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | return;
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _: &'static &'a _ = &&();
|
2022-11-16 04:11:44 -06:00
|
|
|
| ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
2018-11-28 15:05:36 -06:00
|
|
|
|
2019-01-12 08:55:23 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/wf-unreachable.rs:49:12
|
2019-01-12 08:55:23 -06:00
|
|
|
|
|
|
|
|
LL | fn required_substs<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | return;
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _: C<'static, 'a, _> = C((), &(), &());
|
2022-11-16 04:11:44 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
2018-11-28 15:05:36 -06:00
|
|
|
|
2019-01-12 08:55:23 -06:00
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|