]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bind-struct-early-modifiers.rs
Rollup merge of #57302 - sinkuu:unused_assignments_fp, r=estebank
[rust.git] / src / test / ui / parser / bind-struct-early-modifiers.rs
1 fn main() {
2     struct Foo { x: isize }
3     match (Foo { x: 10 }) {
4         Foo { ref x: ref x } => {}, //~ ERROR expected `,`
5                                     //~| ERROR pattern does not mention field `x`
6         _ => {}
7     }
8 }