rust/tests/ui/pattern/issue-66270-pat-struct-parser-recovery.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
207 B
Rust
Raw Normal View History

2019-12-22 16:36:30 -06:00
// 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 {};
}