// Note that this one works with default binding modes.
match &[0, 1, 2] {
- [..] => {} //~ ERROR non-reference pattern used to match a reference
+ [..] => {}
};
match &[0, 1, 2] {
fn another_fn_to_avoid_suppression() {
match Default::default()
{
- [] => {} //~ ERROR the type of this value
+ [] => {} //~ ERROR type annotations needed
};
}