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