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
|
|
|
|
|
2023-06-22 15:30:23 -05:00
|
|
|
LL | rawLines
|
|
|
|
| ^-------
|
|
|
|
| |
|
|
|
|
| _____`rawLines` is borrowed here
|
|
|
|
| |
|
|
|
|
LL | | .iter().map(|l| l.trim()).collect()
|
|
|
|
| |___________________________________________^ returns a value referencing data owned by the current function
|
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`.
|