]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13497-2.stderr
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
[rust.git] / src / test / ui / issues / issue-13497-2.stderr
1 error[E0515]: cannot return value referencing local variable `rawLines`
2   --> $DIR/issue-13497-2.rs:3:5
3    |
4 LL |        rawLines
5    |   _____^
6    |  |_____|
7    | ||
8 LL | ||         .iter().map(|l| l.trim()).collect()
9    | ||_______________-___________________________^ returns a value referencing data owned by the current function
10    | |________________|
11    |                  `rawLines` is borrowed here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0515`.