2018-09-25 14:06:28 +00:00
|
|
|
error[E0716]: temporary value dropped while borrowed
|
2019-04-07 15:07:36 +00:00
|
|
|
--> $DIR/issue-47184.rs:2:44
|
2018-03-13 14:16:14 +00:00
|
|
|
|
|
|
|
|
LL | let _vec: Vec<&'static String> = vec![&String::new()];
|
2018-10-14 14:12:02 +00:00
|
|
|
| -------------------- ^^^^^^^^^^^^^ - temporary value is freed at the end of this statement
|
|
|
|
| | |
|
2022-10-20 15:43:27 +00:00
|
|
|
| | creates a temporary value which is freed while still in use
|
2018-10-14 14:12:02 +00:00
|
|
|
| type annotation requires that borrow lasts for `'static`
|
2018-03-13 14:16:14 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-09-25 14:06:28 +00:00
|
|
|
For more information about this error, try `rustc --explain E0716`.
|