diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-08 01:47:46 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-28 06:53:39 +0200 |
| commit | 75da43dc87a9fee3fc1ef5cffb4a6721ef4bd2ba (patch) | |
| tree | 3d90c5ef535ada61cc549e97ab56987cc4b502b7 /src/test/ui/match | |
| parent | 891a736b0206f9646803475bed1aeb7ac9efcadd (diff) | |
| download | rust-75da43dc87a9fee3fc1ef5cffb4a6721ef4bd2ba.tar.gz rust-75da43dc87a9fee3fc1ef5cffb4a6721ef4bd2ba.zip | |
Use new 'p @ ..' syntax in tests.
Diffstat (limited to 'src/test/ui/match')
| -rw-r--r-- | src/test/ui/match/match-vec-mismatch.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/match/match-vec-unreachable.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/match/match-vec-mismatch.rs b/src/test/ui/match/match-vec-mismatch.rs index 5e61c1b22a0..a0ef92743ac 100644 --- a/src/test/ui/match/match-vec-mismatch.rs +++ b/src/test/ui/match/match-vec-mismatch.rs @@ -19,10 +19,10 @@ fn main() { match [0, 1, 2] { [0] => {}, //~ ERROR pattern requires - [0, 1, x..] => { + [0, 1, x @ ..] => { let a: [_; 1] = x; } - [0, 1, 2, 3, x..] => {} //~ ERROR pattern requires + [0, 1, 2, 3, x @ ..] => {} //~ ERROR pattern requires }; match does_not_exist { //~ ERROR cannot find value `does_not_exist` in this scope diff --git a/src/test/ui/match/match-vec-unreachable.rs b/src/test/ui/match/match-vec-unreachable.rs index 9e167f37ba9..78810525bad 100644 --- a/src/test/ui/match/match-vec-unreachable.rs +++ b/src/test/ui/match/match-vec-unreachable.rs @@ -23,7 +23,7 @@ fn main() { let x: Vec<char> = vec!['a', 'b', 'c']; let x: &[char] = &x; match *x { - ['a', 'b', 'c', ref _tail..] => {} + ['a', 'b', 'c', ref _tail @ ..] => {} ['a', 'b', 'c'] => {} //~ ERROR unreachable pattern _ => {} } |
