]> git.lizzy.rs Git - rust.git/commitdiff
fixed pattern, moved test to compile-fail
authorJohn Clements <clements@racket-lang.org>
Tue, 30 Apr 2013 18:58:55 +0000 (11:58 -0700)
committerJohn Clements <clements@racket-lang.org>
Tue, 30 Apr 2013 23:31:56 +0000 (16:31 -0700)
src/test/compile-fail/issue-5927.rs [new file with mode: 0644]
src/test/run-fail/issue-5927.rs [deleted file]

diff --git a/src/test/compile-fail/issue-5927.rs b/src/test/compile-fail/issue-5927.rs
new file mode 100644 (file)
index 0000000..a1b4ee7
--- /dev/null
@@ -0,0 +1,20 @@
+// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+
+
+// error-pattern:unresolved enum variant
+
+fn main() {
+    let z = match 3 {
+        x() => x
+    };
+    assert_eq!(z,3);
+}
diff --git a/src/test/run-fail/issue-5927.rs b/src/test/run-fail/issue-5927.rs
deleted file mode 100644 (file)
index f302d70..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-
-
-// error-pattern:cant-use-x-as-pattern-mumble
-
-fn main() {
-    let z = match 3 {
-        x() => x
-    };
-    assert_eq!(z,3);
-}