Skip to content

Commit bb0db93

Browse files
committed
---
yaml --- r: 10655 b: refs/heads/snap-stage3 c: 0fe9c0a h: refs/heads/master i: 10653: 558409e 10651: c1581cf 10647: 4a9b668 10639: 5cef5a1 10623: b3acaec v: v3
1 parent 6c88890 commit bb0db93

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: abfa8164cd9d64e95039019eb9b4c3fdec2685c5
4+
refs/heads/snap-stage3: 0fe9c0a9d11e64f556fcdee8296d7ae43c7fcd35
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
fn main() {
2+
enum color {
3+
rgb(uint, uint, uint),
4+
cmyk(uint, uint, uint, uint),
5+
no_color,
6+
}
7+
8+
fn foo(c: color) {
9+
alt c {
10+
rgb(_, _, _) { }
11+
cmyk(_, _, _, _) { }
12+
no_color(_) { }
13+
//!^ ERROR this pattern has 1 field, but the corresponding variant has no fields
14+
}
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
fn main() {
2+
enum color {
3+
rgb(uint, uint, uint),
4+
cmyk(uint, uint, uint, uint),
5+
no_color,
6+
}
7+
8+
fn foo(c: color) {
9+
alt c {
10+
rgb(_, _) { }
11+
//!^ ERROR this pattern has 2 fields, but the corresponding variant has 3 fields
12+
cmyk(_, _, _, _) { }
13+
no_color { }
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)