rust/tests/ui/issues/issue-26619.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
654 B
Plaintext
Raw Normal View History

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)) {
| -------- ^^^^^^^^^^^^^^^^^^^^^ 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
For more information about this error, try `rustc --explain E0515`.