rust/src/test/run-pass/unique-pat-2.rs
Brian Anderson 18b01d5cfe Create a bunch of test cases for unique boxes by copying box tests
XFAIL the ones that don't work

Issue #409
2011-09-23 15:15:30 -07:00

12 lines
222 B
Rust

// xfail-test
type foo = {a: int, b: uint};
tag bar { u(~foo); w(int); }
fn main() {
assert (alt u(~{a: 10, b: 40u}) {
u(~{a: a, b: b}) { a + (b as int) }
_ { 66 }
} == 50);
}