summary refs log tree commit diff
path: root/src/test/run-pass/expr-alt-unique.rs
blob: e20afdcc45d0969d6fb0a3f5f39598663138a61a (plain)
1
2
3
4
5
6
7
8
9
10
11
12



// -*- 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(); }