2019-04-22 08:40:08 +01:00
|
|
|
error[E0515]: cannot return value referencing local variable `rawLines`
|
2022-02-17 16:00:04 +00:00
|
|
|
--> $DIR/issue-13497-2.rs:3:5
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2022-12-27 11:03:59 -08:00
|
|
|
LL | // rawLines
|
2022-02-17 16:00:04 +00:00
|
|
|
LL | || .iter().map(|l| l.trim()).collect()
|
|
|
|
| ||_______________-___________________________^ returns a value referencing data owned by the current function
|
2022-11-23 14:28:45 -08:00
|
|
|
| |_______________|
|
2022-02-17 16:00:04 +00:00
|
|
|
| `rawLines` is borrowed here
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2019-04-22 08:40:08 +01:00
|
|
|
For more information about this error, try `rustc --explain E0515`.
|