Skip to content

Commit b832582

Browse files
committed
Add comment to tests/ui/closures/simple-capture-and-call.rs
1 parent 4959cb1 commit b832582

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
//! regression test for issue #1895
12
//@ run-pass
23

3-
pub fn main() {
4-
let x = 1_usize;
5-
let y = || x;
6-
let _z = y();
4+
fn main() {
5+
let x = 1_usize;
6+
let y = || x;
7+
let _z = y();
78
}

0 commit comments

Comments
 (0)