rust/src/test/run-pass/expr-alt-unique.rs
2012-08-23 15:12:02 -07:00

13 lines
208 B
Rust

// -*- rust -*-
// Tests for match as expressions resulting in boxed types
fn test_box() {
let res = match true { true => { ~100 }, _ => fail };
assert (*res == 100);
}
fn main() { test_box(); }