2018-10-14 15:12:02 +01:00
|
|
|
error[E0515]: cannot return value referencing local variable `rawLines`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-13497-2.rs:3:5
|
2018-07-22 16:02:31 +01:00
|
|
|
|
|
2018-10-14 15:12:02 +01:00
|
|
|
LL | rawLines //~ ERROR `rawLines` does not live long enough
|
|
|
|
| ^-------
|
|
|
|
| |
|
|
|
|
| _____`rawLines` is borrowed here
|
|
|
|
| |
|
|
|
|
LL | | .iter().map(|l| l.trim()).collect()
|
|
|
|
| |___________________________________________^ returns a value referencing data owned by the current function
|
2018-07-22 16:02:31 +01:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-10-14 15:12:02 +01:00
|
|
|
For more information about this error, try `rustc --explain E0515`.
|