]> git.lizzy.rs Git - rust.git/commitdiff
check exclusive_range_pattern feature gate
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Thu, 19 Jan 2017 14:13:44 +0000 (15:13 +0100)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Thu, 19 Jan 2017 14:13:44 +0000 (15:13 +0100)
src/test/compile-fail/feature-gate-exclusive-range-pattern.rs [new file with mode: 0644]
src/test/compile-fail/pat-range-bad-dots.rs [deleted file]

diff --git a/src/test/compile-fail/feature-gate-exclusive-range-pattern.rs b/src/test/compile-fail/feature-gate-exclusive-range-pattern.rs
new file mode 100644 (file)
index 0000000..e0b6d59
--- /dev/null
@@ -0,0 +1,16 @@
+// Copyright 2014 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.
+
+pub fn main() {
+    match 22 {
+        0 .. 3 => {} //~ ERROR exclusive range pattern syntax is experimental
+        _ => {}
+    }
+}
diff --git a/src/test/compile-fail/pat-range-bad-dots.rs b/src/test/compile-fail/pat-range-bad-dots.rs
deleted file mode 100644 (file)
index e0b6d59..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2014 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.
-
-pub fn main() {
-    match 22 {
-        0 .. 3 => {} //~ ERROR exclusive range pattern syntax is experimental
-        _ => {}
-    }
-}