rustc: Add a test case for previous commit
This commit is contained in:
parent
35e021ed53
commit
55ab187c9c
1 changed files with 11 additions and 0 deletions
11
src/test/run-pass/simple-alt-generic-tag.rs
Normal file
11
src/test/run-pass/simple-alt-generic-tag.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
tag opt[T] {
|
||||
none;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
auto x = none[int];
|
||||
alt (x) {
|
||||
case (none[int]) { log "hello world"; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue