diff options
| author | Patrick Walton <[email protected]> | 2011-04-14 12:51:27 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-04-14 12:51:27 -0700 |
| commit | 55ab187c9cbffc3b938b40032c6031202c3d8f50 (patch) | |
| tree | f165ba5166b2f3cf823a1ce4d4660f662880896f /src/test | |
| parent | rustc: Perform type substitutions when recording locals (diff) | |
| download | rust-55ab187c9cbffc3b938b40032c6031202c3d8f50.tar.xz rust-55ab187c9cbffc3b938b40032c6031202c3d8f50.zip | |
rustc: Add a test case for previous commit
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/simple-alt-generic-tag.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/run-pass/simple-alt-generic-tag.rs b/src/test/run-pass/simple-alt-generic-tag.rs new file mode 100644 index 00000000..353dbf7e --- /dev/null +++ b/src/test/run-pass/simple-alt-generic-tag.rs @@ -0,0 +1,11 @@ +tag opt[T] { + none; +} + +fn main() { + auto x = none[int]; + alt (x) { + case (none[int]) { log "hello world"; } + } +} + |