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/array-slice-vec/vec-tail-matching.rs | |
| parent | 891a736b0206f9646803475bed1aeb7ac9efcadd (diff) | |
| download | rust-75da43dc87a9fee3fc1ef5cffb4a6721ef4bd2ba.tar.gz rust-75da43dc87a9fee3fc1ef5cffb4a6721ef4bd2ba.zip | |
Use new 'p @ ..' syntax in tests.
Diffstat (limited to 'src/test/ui/array-slice-vec/vec-tail-matching.rs')
| -rw-r--r-- | src/test/ui/array-slice-vec/vec-tail-matching.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/array-slice-vec/vec-tail-matching.rs b/src/test/ui/array-slice-vec/vec-tail-matching.rs index 84d246dff82..3c7b160dcc5 100644 --- a/src/test/ui/array-slice-vec/vec-tail-matching.rs +++ b/src/test/ui/array-slice-vec/vec-tail-matching.rs @@ -13,14 +13,14 @@ pub fn main() { Foo { string: "baz" } ]; match x { - [ref first, ref tail..] => { + [ref first, ref tail @ ..] => { assert_eq!(first.string, "foo"); assert_eq!(tail.len(), 2); assert_eq!(tail[0].string, "bar"); assert_eq!(tail[1].string, "baz"); match *(tail as &[_]) { - [Foo { .. }, _, Foo { .. }, ref _tail..] => { + [Foo { .. }, _, Foo { .. }, ref _tail @ ..] => { unreachable!(); } [Foo { string: ref a }, Foo { string: ref b }] => { |
