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