]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13497-2.stderr
Auto merge of #93918 - jonhoo:bootstrap-native-envflags, r=Mark-Simulacrum
[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:29
3    |
4 LL |     rawLines.iter().map(|l| l.trim()).collect()
5    |     ---------------         ^^^^^^^^ returns a value referencing data owned by the current function
6    |     |
7    |     `rawLines` is borrowed here
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0515`.