2019-04-22 07:40:08 +00: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 21:11:54 +00:00
|
|
|
|
|
2023-06-22 20:30:23 +00: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 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2019-04-22 07:40:08 +00:00
|
|
|
For more information about this error, try `rustc --explain E0515`.
|