aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/drop-parametric-closure-with-bound-box.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-10-28 15:02:00 -0700
committerPatrick Walton <[email protected]>2010-10-28 15:07:05 -0700
commit67bcc70754ffa27b37c10646daef43d83dd9a1b4 (patch)
treeb2250c157fe5e7c9b359b06fa6468f9f34986c68 /src/test/run-pass/drop-parametric-closure-with-bound-box.rs
parentRevert "rustboot: Emit an error instead of asserting in trans when a T is pas... (diff)
downloadrust-67bcc70754ffa27b37c10646daef43d83dd9a1b4.tar.xz
rust-67bcc70754ffa27b37c10646daef43d83dd9a1b4.zip
rustboot: Emit an error instead of asserting in trans when a T is passed by value
Diffstat (limited to 'src/test/run-pass/drop-parametric-closure-with-bound-box.rs')
-rw-r--r--src/test/run-pass/drop-parametric-closure-with-bound-box.rs4
1 files changed, 2 insertions, 2 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
index cf1ff750..dcdc4b03 100644
--- a/src/test/run-pass/drop-parametric-closure-with-bound-box.rs
+++ b/src/test/run-pass/drop-parametric-closure-with-bound-box.rs
@@ -1,5 +1,5 @@
-fn f[T](@int i, T t) {}
+fn f[T](@int i, &T t) {}
fn main() {
auto x = bind f[char](@0xdeafbeef, _);
-} \ No newline at end of file
+}