diff options
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/no-send-res-ports.rs | 2 | ||||
| -rw-r--r-- | src/test/compile-fail/unsendable-class.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/no-send-res-ports.rs b/src/test/compile-fail/no-send-res-ports.rs index 2bf2155e4c5..2a6c26e9f13 100644 --- a/src/test/compile-fail/no-send-res-ports.rs +++ b/src/test/compile-fail/no-send-res-ports.rs @@ -5,7 +5,7 @@ fn main() { drop {} } - let x = ~mut Some(foo(comm::port())); + let x = ~mut Some(foo(comm::Port())); do task::spawn |move x| { //~ ERROR not a sendable value let mut y = None; diff --git a/src/test/compile-fail/unsendable-class.rs b/src/test/compile-fail/unsendable-class.rs index 7a724ff3d5c..29d89fbf860 100644 --- a/src/test/compile-fail/unsendable-class.rs +++ b/src/test/compile-fail/unsendable-class.rs @@ -9,7 +9,7 @@ struct foo { fn main() { let cat = ~"kitty"; - let po = comm::port(); //~ ERROR missing `send` - let ch = comm::chan(po); //~ ERROR missing `send` + let po = comm::Port(); //~ ERROR missing `send` + let ch = comm::Chan(po); //~ ERROR missing `send` comm::send(ch, foo(42, @cat)); //~ ERROR missing `send` } |
