about summary refs log tree commit diff
path: root/tests/ui/binding/match-naked-record.rs
blob: ce9489a00f2c68b0041cf33182728c3560b0bc5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ run-pass
#![allow(dead_code)]

struct X { x: isize }

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