summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/bind-struct-early-modifiers.rs
blob: c4b1937de104f491516280e2ec8e857cbbb58474 (plain)
1
2
3
4
5
6
7
fn main() {
    struct Foo { x: isize }
    match (Foo { x: 10 }) {
        Foo { ref x: ref x } => {}, //~ ERROR expected `,`
        _ => {}
    }
}