blob: e067bcdf34adb85d9f3023511869514962e8597b [file] [log] [blame]
// run-pass
struct A(isize);
fn main() {
let x = match A(3) {
A(..) => 1
};
assert_eq!(x, 1);
let x = match A(4) {
A(1) => 1,
A(..) => 2
};
assert_eq!(x, 2);
}