aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/drop-bind-thunk-args.rs8
1 files changed, 8 insertions, 0 deletions
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