rust/src/test/run-pass/unique-pat-3.rs

13 lines
163 B
Rust

tag bar { u(~int); w(int); }
fn main() {
assert alt u(~10) {
u(a) {
log_full(core::error, a);
*a
}
_ { 66 }
} == 10;
}