blob: 48a8e04829a0a7d9f3208152da9d0001d9620fff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Regression test for #66270, fixed by #66246
struct Bug {
incorrect_field: 0,
//~^ ERROR expected type
}
struct Empty {}
fn main() {
let Bug {
any_field: Empty {},
} = Bug {};
}
|