aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/run-pass/simple-alt-generic-tag.rs11
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"; }
+ }
+}
+