Skip to content

Commit a02493b

Browse files
Paul Woolcockmarijnh
authored andcommitted
Fix last failing test
All tests now pass, without the ternary operator.
1 parent e1251f7 commit a02493b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/test/run-pass/weird-exprs.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ fn zombiejesus() {
1919
do {
2020
while (ret) {
2121
if (ret) {
22-
alt (ret) { _ { if ret { ret } else { ret } } };
22+
alt (ret) {
23+
_ {
24+
if (ret) {
25+
ret
26+
} else {
27+
ret
28+
}
29+
}
30+
};
2331
} else if (ret) {
2432
ret;
2533
}

0 commit comments

Comments
 (0)