Skip to content

Commit 2602c21

Browse files
committed
---
yaml --- r: 3315 b: refs/heads/master c: 7105cd1 h: refs/heads/master i: 3313: c88a336 3311: bc6e8d2 v: v3
1 parent 6884f3a commit 2602c21

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 54566e903781740cd1aa9f775a86db76a0fa5de7
2+
refs/heads/master: 7105cd1761c9ad84f95381f021ca4960e2bd0641

trunk/src/test/run-pass/alt-str.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Issue #53
2+
3+
fn main() {
4+
alt ("test") {
5+
case ("not-test") { fail; }
6+
case ("test") { }
7+
case (_) { fail; }
8+
}
9+
10+
tag t {
11+
tag1(str);
12+
tag2;
13+
}
14+
15+
alt (tag1("test")) {
16+
case (tag2) { fail; }
17+
case (tag1("not-test")) { fail; }
18+
case (tag1("test")) { }
19+
case (_) { fail; }
20+
}
21+
}

0 commit comments

Comments
 (0)