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 
main()10 fn main() {
11     let Bug {
12         any_field: Empty {},
13     } = Bug {};
14 }
15