Skip to content

Commit 71dbbe1

Browse files
committed
Make moves explicit in rfail tests
1 parent 3ebd878 commit 71dbbe1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/test/run-fail/port-type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn echo<T: Send>(c: Chan<T>, oc: Chan<Chan<T>>) {
1212
send(oc, Chan(&p));
1313

1414
let x = recv(p);
15-
send(c, x);
15+
send(c, move x);
1616
}
1717

1818
fn main() { fail ~"meep"; }

src/test/run-fail/unwind-box-res.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn r(v: *int) -> r {
2020
fn main() unsafe {
2121
let i1 = ~0;
2222
let i1p = cast::reinterpret_cast(&i1);
23-
cast::forget(i1);
23+
cast::forget(move i1);
2424
let x = @r(i1p);
2525
failfn();
2626
log(error, x);

src/test/run-fail/unwind-move.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// error-pattern:fail
2-
fn f(-a: @int) {
2+
fn f(-_a: @int) {
33
fail;
44
}
55

66
fn main() {
77
let a = @0;
8-
f(a);
8+
f(move a);
99
}

0 commit comments

Comments
 (0)