diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-18 22:55:21 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-12 20:43:38 -0700 |
| commit | 71dbbe145c42f3d9dc7842861738bfa64550dbbd (patch) | |
| tree | 4f97cf8133251f0a4a4d8db5c06f28e8ed718e36 /src/test/run-fail | |
| parent | 3ebd878f4a01e8f66dee09e054c6c0c39384afd8 (diff) | |
| download | rust-71dbbe145c42f3d9dc7842861738bfa64550dbbd.tar.gz rust-71dbbe145c42f3d9dc7842861738bfa64550dbbd.zip | |
Make moves explicit in rfail tests
Diffstat (limited to 'src/test/run-fail')
| -rw-r--r-- | src/test/run-fail/port-type.rs | 2 | ||||
| -rw-r--r-- | src/test/run-fail/unwind-box-res.rs | 2 | ||||
| -rw-r--r-- | src/test/run-fail/unwind-move.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/test/run-fail/port-type.rs b/src/test/run-fail/port-type.rs index 30714413c53..9f2974d2cc2 100644 --- a/src/test/run-fail/port-type.rs +++ b/src/test/run-fail/port-type.rs @@ -12,7 +12,7 @@ fn echo<T: Send>(c: Chan<T>, oc: Chan<Chan<T>>) { send(oc, Chan(&p)); let x = recv(p); - send(c, x); + send(c, move x); } fn main() { fail ~"meep"; } diff --git a/src/test/run-fail/unwind-box-res.rs b/src/test/run-fail/unwind-box-res.rs index 0bea0f934f4..ca85aa97017 100644 --- a/src/test/run-fail/unwind-box-res.rs +++ b/src/test/run-fail/unwind-box-res.rs @@ -20,7 +20,7 @@ fn r(v: *int) -> r { fn main() unsafe { let i1 = ~0; let i1p = cast::reinterpret_cast(&i1); - cast::forget(i1); + cast::forget(move i1); let x = @r(i1p); failfn(); log(error, x); diff --git a/src/test/run-fail/unwind-move.rs b/src/test/run-fail/unwind-move.rs index 311cb52b134..995edbcc05b 100644 --- a/src/test/run-fail/unwind-move.rs +++ b/src/test/run-fail/unwind-move.rs @@ -1,9 +1,9 @@ // error-pattern:fail -fn f(-a: @int) { +fn f(-_a: @int) { fail; } fn main() { let a = @0; - f(a); + f(move a); } \ No newline at end of file |
