]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/issue-91058.rs
Auto merge of #93312 - pierwill:map-all-local-trait-impls, r=cjgillot
[rust.git] / src / test / ui / match / issue-91058.rs
1 struct S(());
2
3 fn main() {
4     let array = [S(())];
5
6     match array {
7         [()] => {}
8         //~^ ERROR mismatched types [E0308]
9         _ => {}
10     }
11 }