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,6 +4,6 @@ pub fn main() {
|
|||
let sl: &[u8] = b"foo";
|
||||
|
||||
match sl { //~ ERROR non-exhaustive patterns
|
||||
[first, remainder..] => {},
|
||||
[first, remainder @ ..] => {},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue