about summary refs log tree commit diff
path: root/src/test/run-pass/struct-partial-move-1.rs
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2015-01-02 17:32:54 -0500
committerJorge Aparicio <japaricious@gmail.com>2015-01-05 17:22:16 -0500
commitca17d0812686012307e364a4dce7b84af6886f91 (patch)
tree842b973e6d84b928431910cda850eec90992bd96 /src/test/run-pass/struct-partial-move-1.rs
parent8d0d7521d65eff290183e9d19858c6ca8779fe01 (diff)
downloadrust-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.rs2
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