]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/issue-66270-pat-struct-parser-recovery.rs
Rollup merge of #98583 - joshtriplett:stabilize-windows-symlink-types, r=thomcc
[rust.git] / src / test / 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 }