about summary refs log tree commit diff
path: root/src/test/ui/parser/mut-patterns.rs
blob: a5eb48252394f18b0b8ce30a1e26a05b1c55ea82 (plain)
1
2
3
4
5
6
// Can't put mut in non-ident pattern

pub fn main() {
    struct Foo { x: isize }
    let mut Foo { x: x } = Foo { x: 3 }; //~ ERROR: expected one of `:`, `;`, `=`, or `@`, found `{`
}