]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13497-2.stderr
Rollup merge of #105899 - lukas-code:stage-1-docs, r=jyn514
[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`.