aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-10-14 12:41:48 -0700
committerGraydon Hoare <[email protected]>2010-10-14 12:41:48 -0700
commitf234750d802fde35f6607fd1599f805e490f3dd2 (patch)
tree8cc749712920857e9a348e72b8a7855085b893c6 /src/test
parentMove the friendly-names table to semant, reuse it in the name mangler. (diff)
downloadrust-f234750d802fde35f6607fd1599f805e490f3dd2.tar.xz
rust-f234750d802fde35f6607fd1599f805e490f3dd2.zip
Fix crasher in rustc.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/drop-parametric-closure-with-bound-box.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/run-pass/drop-parametric-closure-with-bound-box.rs b/src/test/run-pass/drop-parametric-closure-with-bound-box.rs
new file mode 100644
index 00000000..cf1ff750
--- /dev/null
+++ b/src/test/run-pass/drop-parametric-closure-with-bound-box.rs
@@ -0,0 +1,5 @@
+fn f[T](@int i, T t) {}
+
+fn main() {
+ auto x = bind f[char](@0xdeafbeef, _);
+} \ No newline at end of file