rust/src/test/compile-fail/unsafe-alt.rs

18 lines
244 B
Rust
Raw Normal View History

// error-pattern:invalidate alias i
tag foo {
left(int);
right(bool);
}
fn main() {
auto x = left(10);
alt (x) {
case (left(?i)) {
x = right(false);
log i;
}
case (_) {}
}
}