From 2e0d07540702ac6cabcc5670660c72f898d5cbd2 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 30 Sep 2010 17:39:37 -0700 Subject: Fix bug in bind thunks failing top drop unbound args; add test and adjust rustc to use bind again. --- src/test/run-pass/drop-bind-thunk-args.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/test/run-pass/drop-bind-thunk-args.rs (limited to 'src/test') diff --git a/src/test/run-pass/drop-bind-thunk-args.rs b/src/test/run-pass/drop-bind-thunk-args.rs new file mode 100644 index 00000000..1198af40 --- /dev/null +++ b/src/test/run-pass/drop-bind-thunk-args.rs @@ -0,0 +1,8 @@ +fn f(@int x) { } + +fn main() { + auto x = @10; + auto ff = bind f(_); + ff(x); + ff(x); +} \ No newline at end of file -- cgit v1.2.3