We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6884f3a commit 2602c21Copy full SHA for 2602c21
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 54566e903781740cd1aa9f775a86db76a0fa5de7
+refs/heads/master: 7105cd1761c9ad84f95381f021ca4960e2bd0641
trunk/src/test/run-pass/alt-str.rs
@@ -0,0 +1,21 @@
+// Issue #53
+
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
20
21
+}
0 commit comments