diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-13497-2.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-13497-2.stderr b/src/test/ui/issues/issue-13497-2.stderr new file mode 100644 index 000000000..6f72b79f2 --- /dev/null +++ b/src/test/ui/issues/issue-13497-2.stderr @@ -0,0 +1,15 @@ +error[E0515]: cannot return value referencing local variable `rawLines` + --> $DIR/issue-13497-2.rs:3:5 + | +LL | rawLines + | _____^ + | |_____| + | || +LL | || .iter().map(|l| l.trim()).collect() + | ||_______________-___________________________^ returns a value referencing data owned by the current function + | |________________| + | `rawLines` is borrowed here + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0515`. |