diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-08 01:58:28 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-28 06:53:39 +0200 |
| commit | 91c8b53f458ef6efb3640a359dba4015848fd9d1 (patch) | |
| tree | e2290604be8794c9bff156ac23f920355718ad06 /src/test/ui/parser/match-vec-invalid.rs | |
| parent | 75da43dc87a9fee3fc1ef5cffb4a6721ef4bd2ba (diff) | |
| download | rust-91c8b53f458ef6efb3640a359dba4015848fd9d1.tar.gz rust-91c8b53f458ef6efb3640a359dba4015848fd9d1.zip | |
--bless tests due to new subslice syntax.
Diffstat (limited to 'src/test/ui/parser/match-vec-invalid.rs')
| -rw-r--r-- | src/test/ui/parser/match-vec-invalid.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/ui/parser/match-vec-invalid.rs b/src/test/ui/parser/match-vec-invalid.rs index 269f2ce85a3..d14fdc4e22e 100644 --- a/src/test/ui/parser/match-vec-invalid.rs +++ b/src/test/ui/parser/match-vec-invalid.rs @@ -1,7 +1,12 @@ fn main() { let a = Vec::new(); match a { - [1, tail @ .., tail @ ..] => {}, //~ ERROR: expected one of `,` or `@`, found `..` + [1, tail @ .., tail @ ..] => {}, + //~^ ERROR identifier `tail` is bound more than once in the same pattern + //~| ERROR subslice patterns are unstable + //~| ERROR subslice patterns are unstable + //~| ERROR `..` can only be used once per slice pattern + //~| ERROR expected an array or slice, found `std::vec::Vec<_>` _ => () } } |
