aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/simple-alt-generic-tag.rs
blob: 353dbf7e7930237dcf1acf3d8d7f1822f782a0de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
tag opt[T] {
    none;
}

fn main() {
    auto x = none[int];
    alt (x) {
        case (none[int]) { log "hello world"; }
    }
}