aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/auto-instantiate.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/run-pass/auto-instantiate.rs b/src/test/run-pass/auto-instantiate.rs
new file mode 100644
index 00000000..58e20e1d
--- /dev/null
+++ b/src/test/run-pass/auto-instantiate.rs
@@ -0,0 +1,11 @@
+// -*- rust -*-
+
+fn f[T,U](&T x, &U y) -> tup(T,U) {
+ ret tup(x, y);
+}
+
+fn main() -> () {
+ log f(tup(3, 4, 5), 4)._0._0;
+ log f(5, 6)._0;
+}
+