2019-04-22 02:40:08 -05:00
|
|
|
error[E0515]: cannot return value referencing local variable `rawLines`
|
2022-02-17 10:00:04 -06:00
|
|
|
--> $DIR/issue-13497-2.rs:3:5
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2022-12-27 13:03:59 -06:00
|
|
|
LL | // rawLines
|
2022-02-17 10:00:04 -06:00
|
|
|
LL | || .iter().map(|l| l.trim()).collect()
|
|
|
|
| ||_______________-___________________________^ returns a value referencing data owned by the current function
|
2022-11-23 16:28:45 -06:00
|
|
|
| |_______________|
|
2022-02-17 10:00:04 -06:00
|
|
|
| `rawLines` is borrowed here
|
2018-07-15 16:11:54 -05: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`.
|