Use new 'p @ ..' syntax in tests.

This commit is contained in:
Mazdak Farrokhzad 2019-07-08 01:47:46 +02:00
parent 891a736b02
commit 75da43dc87
36 changed files with 69 additions and 85 deletions

View file

@ -4,7 +4,7 @@
#![feature(slice_patterns)]
fn foo(s: &[i32]) -> &[i32] {
let &[ref xs..] = s;
let &[ref xs @ ..] = s;
xs
}