]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13497-2.stderr
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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`.