]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/issue-66270-pat-struct-parser-recovery.rs
Rollup merge of #106749 - glandium:dwarf, r=Mark-Simulacrum
[rust.git] / tests / ui / pattern / issue-66270-pat-struct-parser-recovery.rs
1 // Regression test for #66270, fixed by #66246
2
3 struct Bug {
4     incorrect_field: 0,
5     //~^ ERROR expected type
6 }
7
8 struct Empty {}
9
10 fn main() {
11     let Bug {
12         any_field: Empty {},
13     } = Bug {};
14 }