2019-04-22 07:40:08 +00:00
|
|
|
error[E0515]: cannot return value referencing function parameter
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/issue-26619.rs:5:76
|
2019-02-25 23:55:00 +00:00
|
|
|
|
|
|
|
|
LL | for s in vec!["1|2".to_string()].into_iter().filter_map(|ref line| self.make_entry(line)) {
|
2019-04-22 07:40:08 +00:00
|
|
|
| -------- ^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function
|
|
|
|
| |
|
|
|
|
| function parameter borrowed here
|
2019-02-25 23:55:00 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2019-04-22 07:40:08 +00:00
|
|
|
For more information about this error, try `rustc --explain E0515`.
|