2021-10-27 19:00:00 -05:00
|
|
|
error[E0716]: temporary value dropped while borrowed
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/qualif-union.rs:28:26
|
2021-10-27 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _: &'static _ = &C1;
|
2022-10-20 10:43:27 -05:00
|
|
|
| ---------- ^^ creates a temporary value which is freed while still in use
|
2021-10-27 19:00:00 -05:00
|
|
|
| |
|
|
|
|
| type annotation requires that borrow lasts for `'static`
|
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - temporary value is freed at the end of this statement
|
|
|
|
|
|
|
|
error[E0716]: temporary value dropped while borrowed
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/qualif-union.rs:29:26
|
2021-10-27 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _: &'static _ = &C2;
|
2022-10-20 10:43:27 -05:00
|
|
|
| ---------- ^^ creates a temporary value which is freed while still in use
|
2021-10-27 19:00:00 -05:00
|
|
|
| |
|
|
|
|
| type annotation requires that borrow lasts for `'static`
|
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - temporary value is freed at the end of this statement
|
|
|
|
|
|
|
|
error[E0716]: temporary value dropped while borrowed
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/qualif-union.rs:30:26
|
2021-10-27 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _: &'static _ = &C3;
|
2022-10-20 10:43:27 -05:00
|
|
|
| ---------- ^^ creates a temporary value which is freed while still in use
|
2021-10-27 19:00:00 -05:00
|
|
|
| |
|
|
|
|
| type annotation requires that borrow lasts for `'static`
|
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - temporary value is freed at the end of this statement
|
|
|
|
|
|
|
|
error[E0716]: temporary value dropped while borrowed
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/qualif-union.rs:31:26
|
2021-10-27 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _: &'static _ = &C4;
|
2022-10-20 10:43:27 -05:00
|
|
|
| ---------- ^^ creates a temporary value which is freed while still in use
|
2021-10-27 19:00:00 -05:00
|
|
|
| |
|
|
|
|
| type annotation requires that borrow lasts for `'static`
|
|
|
|
LL | let _: &'static _ = &C5;
|
|
|
|
LL | }
|
|
|
|
| - temporary value is freed at the end of this statement
|
|
|
|
|
|
|
|
error[E0716]: temporary value dropped while borrowed
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/qualif-union.rs:32:26
|
2021-10-27 19:00:00 -05:00
|
|
|
|
|
|
|
|
LL | let _: &'static _ = &C5;
|
2022-10-20 10:43:27 -05:00
|
|
|
| ---------- ^^ creates a temporary value which is freed while still in use
|
2021-10-27 19:00:00 -05:00
|
|
|
| |
|
|
|
|
| type annotation requires that borrow lasts for `'static`
|
|
|
|
LL | }
|
|
|
|
| - temporary value is freed at the end of this statement
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0716`.
|