Use new 'p @ ..' syntax in tests.
This commit is contained in:
parent
891a736b02
commit
75da43dc87
36 changed files with 69 additions and 85 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#![feature(slice_patterns)]
|
||||
|
||||
fn foo(s: &[i32]) -> &[i32] {
|
||||
let &[ref xs..] = s;
|
||||
let &[ref xs @ ..] = s;
|
||||
xs
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue