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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
158 B
Rust
Raw Normal View History

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