aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/leak-box-as-tydesc.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/run-pass/leak-box-as-tydesc.rs b/src/test/run-pass/leak-box-as-tydesc.rs
new file mode 100644
index 00000000..7da40cfe
--- /dev/null
+++ b/src/test/run-pass/leak-box-as-tydesc.rs
@@ -0,0 +1,7 @@
+fn leaky[T](T t) {
+}
+
+fn main() {
+ auto x = @10;
+ leaky[@int](x);
+} \ No newline at end of file