about summary refs log tree commit diff
path: root/tests/ui/binding/match-naked-record-expr.rs
blob: 57697a73ca4b2e53b4fe005e480918a70d6dbb48 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ run-pass

struct X { x: isize }

pub fn main() {
    let _x = match 0 {
      _ => X {
        x: 0
      }.x
    };
}