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

13 lines
153 B
Rust

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