rust/tests/ui/match/match-vec-mismatch-2.rs

7 lines
113 B
Rust

fn main() {
match () {
[()] => { }
//~^ ERROR expected an array or slice, found `()`
}
}