rust/src/test/run-pass/unique-pat-3.rs
Brian Anderson 389852b5c0 Fix tags of unique boxes
Issue #409
2011-09-26 14:44:08 -07:00

13 lines
148 B
Rust

tag bar { u(~int); w(int); }
fn main() {
assert alt u(~10) {
u(a) {
log_err a;
*a
}
_ { 66 }
} == 10;
}