2018-09-25 09:06:28 -05:00
|
|
|
error[E0716]: temporary value dropped while borrowed
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-47184.rs:4: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
|
|
|
|
| | |
|
|
|
|
| | creates a temporary which is freed while still in use
|
|
|
|
| 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`.
|