Skip to content

Commit cfaed80

Browse files
committed
Add NLL test error output
1 parent 36eb6a3 commit cfaed80

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0515]: cannot return value referencing function parameter
2+
--> $DIR/issue-26619.rs:7:76
3+
|
4+
LL | for s in vec!["1|2".to_string()].into_iter().filter_map(|ref line| self.make_entry(line)) {
5+
| -------- ^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function
6+
| |
7+
| function parameter borrowed here
8+
9+
error: aborting due to previous error
10+
11+
For more information about this error, try `rustc --explain E0515`.

0 commit comments

Comments
 (0)