Skip to content

Commit a542258

Browse files
committed
Add a test case for previous commit
1 parent ae6d8d1 commit a542258

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/test/run-pass/fat-arrow-alt.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// -*- rust -*-
2+
// xfail-pretty
3+
4+
enum color {
5+
red,
6+
green,
7+
blue
8+
}
9+
10+
fn main() {
11+
log(error, alt red {
12+
red => { 1 }
13+
green => { 2 }
14+
blue => { 3 }
15+
});
16+
}
17+

0 commit comments

Comments
 (0)