about summary refs log tree commit diff
path: root/src/test/ui/feature-gate
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-18 23:57:43 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-08-24 21:53:55 +0200
commitd3b3bceffb1f0fa7727c4d63aa37ecb9444e88c5 (patch)
tree98d62aa6aeb6d504f331050d964fe5df6c902f3a /src/test/ui/feature-gate
parentf35432e1889a4361388adf514634b122aefa746b (diff)
downloadrust-d3b3bceffb1f0fa7727c4d63aa37ecb9444e88c5.tar.gz
rust-d3b3bceffb1f0fa7727c4d63aa37ecb9444e88c5.zip
move `feature-gate-or_patterns.*` -> `ui/or-patterns/`
Diffstat (limited to 'src/test/ui/feature-gate')
-rw-r--r--src/test/ui/feature-gate/feature-gate-or_patterns.rs9
-rw-r--r--src/test/ui/feature-gate/feature-gate-or_patterns.stderr12
2 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/feature-gate/feature-gate-or_patterns.rs b/src/test/ui/feature-gate/feature-gate-or_patterns.rs
deleted file mode 100644
index 036a6095965..00000000000
--- a/src/test/ui/feature-gate/feature-gate-or_patterns.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-#![crate_type="lib"]
-
-pub fn example(x: Option<usize>) {
-    match x {
-        Some(0 | 1 | 2) => {}
-        //~^ ERROR: or-patterns syntax is experimental
-        _ => {}
-    }
-}
diff --git a/src/test/ui/feature-gate/feature-gate-or_patterns.stderr b/src/test/ui/feature-gate/feature-gate-or_patterns.stderr
deleted file mode 100644
index aaabb54c1f0..00000000000
--- a/src/test/ui/feature-gate/feature-gate-or_patterns.stderr
+++ /dev/null
@@ -1,12 +0,0 @@
-error[E0658]: or-patterns syntax is experimental
-  --> $DIR/feature-gate-or_patterns.rs:5:14
-   |
-LL |         Some(0 | 1 | 2) => {}
-   |              ^^^^^^^^^
-   |
-   = note: for more information, see https://github.com/rust-lang/rust/issues/54883
-   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0658`.