rust/src/test/run-pass/unique-pat-3.rs
2012-08-06 15:36:30 -07:00

13 lines
161 B
Rust

enum bar { u(~int), w(int), }
fn main() {
assert match u(~10) {
u(a) => {
log(error, a);
*a
}
_ => { 66 }
} == 10;
}