diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-02 17:32:54 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-05 17:22:16 -0500 |
| commit | ca17d0812686012307e364a4dce7b84af6886f91 (patch) | |
| tree | 842b973e6d84b928431910cda850eec90992bd96 /src/test/run-pass/struct-partial-move-1.rs | |
| parent | 8d0d7521d65eff290183e9d19858c6ca8779fe01 (diff) | |
| download | rust-ca17d0812686012307e364a4dce7b84af6886f91.tar.gz rust-ca17d0812686012307e364a4dce7b84af6886f91.zip | |
fix rpass tests
Diffstat (limited to 'src/test/run-pass/struct-partial-move-1.rs')
| -rw-r--r-- | src/test/run-pass/struct-partial-move-1.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/struct-partial-move-1.rs b/src/test/run-pass/struct-partial-move-1.rs index 8cc4cd142be..043ca121b1b 100644 --- a/src/test/run-pass/struct-partial-move-1.rs +++ b/src/test/run-pass/struct-partial-move-1.rs @@ -16,7 +16,7 @@ struct S { val: int } impl S { fn new(v: int) -> S { S { val: v } } } impl Drop for S { fn drop(&mut self) { } } -pub fn f<T>((b1, b2): (T, T), f: |T| -> T) -> Partial<T> { +pub fn f<T, F>((b1, b2): (T, T), mut f: F) -> Partial<T> where F: FnMut(T) -> T { let p = Partial { x: b1, y: b2 }; // Move of `p` is legal even though we are also moving `p.y`; the |
