mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
13 lines
812 B
Plaintext
13 lines
812 B
Plaintext
|
error[E0597]: borrowed value does not live long enough
|
||
|
--> $DIR/issue-26619.rs:7:66
|
||
|
|
|
||
|
LL | for s in vec!["1|2".to_string()].into_iter().filter_map(|ref line| self.make_entry(line)) {
|
||
|
| ^^^^^^^^ -- temporary value needs to live until here
|
||
|
| | |
|
||
|
| | temporary value dropped here while still borrowed
|
||
|
| temporary value does not live long enough
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0597`.
|