about summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-30 01:37:14 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-01-18 19:33:47 +0100
commite3c2f8fc57e718f4ba1d7f52405eb2c1cb434559 (patch)
treec21ecdb50427d23fe5819603035b75a03396a213 /src/test/ui/parser
parenta1eadca88f03de91f5eecd316419d32e2a302c2b (diff)
downloadrust-e3c2f8fc57e718f4ba1d7f52405eb2c1cb434559.tar.gz
rust-e3c2f8fc57e718f4ba1d7f52405eb2c1cb434559.zip
slice_patterns: organize some tests
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/match-vec-invalid.rs11
-rw-r--r--src/test/ui/parser/match-vec-invalid.stderr24
2 files changed, 0 insertions, 35 deletions
diff --git a/src/test/ui/parser/match-vec-invalid.rs b/src/test/ui/parser/match-vec-invalid.rs
deleted file mode 100644
index 97e33624bf6..00000000000
--- a/src/test/ui/parser/match-vec-invalid.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-fn main() {
-    let a: &[u8] = &[];
-    match a {
-        [1, tail @ .., tail @ ..] => {},
-        //~^ ERROR identifier `tail` is bound more than once in the same pattern
-        //~| ERROR `..` can only be used once per slice pattern
-        _ => ()
-    }
-}
-
-const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types
diff --git a/src/test/ui/parser/match-vec-invalid.stderr b/src/test/ui/parser/match-vec-invalid.stderr
deleted file mode 100644
index 1dc11c31905..00000000000
--- a/src/test/ui/parser/match-vec-invalid.stderr
+++ /dev/null
@@ -1,24 +0,0 @@
-error[E0416]: identifier `tail` is bound more than once in the same pattern
-  --> $DIR/match-vec-invalid.rs:4:24
-   |
-LL |         [1, tail @ .., tail @ ..] => {},
-   |                        ^^^^ used in a pattern more than once
-
-error: `..` can only be used once per slice pattern
-  --> $DIR/match-vec-invalid.rs:4:31
-   |
-LL |         [1, tail @ .., tail @ ..] => {},
-   |                    --         ^^ can only be used once per slice pattern
-   |                    |
-   |                    previously used here
-
-error[E0308]: mismatched types
-  --> $DIR/match-vec-invalid.rs:11:30
-   |
-LL | const RECOVERY_WITNESS: () = 0;
-   |                              ^ expected `()`, found integer
-
-error: aborting due to 3 previous errors
-
-Some errors have detailed explanations: E0308, E0416.
-For more information about an error, try `rustc --explain E0308`.