rust/tests/ui/match/issue-91058.rs

12 lines
158 B
Rust
Raw Normal View History

2021-11-19 14:57:33 -08:00
struct S(());
fn main() {
let array = [S(())];
match array {
[()] => {}
//~^ ERROR mismatched types [E0308]
_ => {}
}
}