Skip to content

Commit bfa43ca

Browse files
committed
Add tests for various ways to write 'do' and 'for' without args
1 parent f2e2a14 commit bfa43ca

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// no-reformat
2+
// Testing various forms of `do` and `for` with empty arg lists
3+
4+
fn f(f: fn() -> bool) {
5+
}
6+
7+
fn main() {
8+
do f() || { true }
9+
do f() { true }
10+
do f || { true }
11+
do f { true }
12+
for f() || { }
13+
for f() { }
14+
for f || { }
15+
for f { }
16+
}

0 commit comments

Comments
 (0)