diff options
| author | Graydon Hoare <[email protected]> | 2010-09-30 17:39:37 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-30 17:39:37 -0700 |
| commit | 2e0d07540702ac6cabcc5670660c72f898d5cbd2 (patch) | |
| tree | df48c5f8070eb55f00db7c435e569782dee26d09 /src/test/run-pass | |
| parent | Drop slots on block exits even when blocks have no statements. Part way to fi... (diff) | |
| download | rust-2e0d07540702ac6cabcc5670660c72f898d5cbd2.tar.xz rust-2e0d07540702ac6cabcc5670660c72f898d5cbd2.zip | |
Fix bug in bind thunks failing top drop unbound args; add test and adjust rustc to use bind again.
Diffstat (limited to 'src/test/run-pass')
| -rw-r--r-- | src/test/run-pass/drop-bind-thunk-args.rs | 8 |
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 |