rust/src/test/ui/parser/bind-struct-early-modifiers.rs
Esteban Küber 6cd6759cfc Do not complain about unmentioned fields in recovered patterns
When the parser has to recover from malformed code in a pattern, do not
complain about missing fields.
2019-03-14 18:28:24 -07:00

8 lines
151 B
Rust

fn main() {
struct Foo { x: isize }
match (Foo { x: 10 }) {
Foo { ref x: ref x } => {}, //~ ERROR expected `,`
_ => {}
}
}