De-mode comm::Chan
This commit is contained in:
parent
777baeb298
commit
fe12da0864
63 changed files with 173 additions and 173 deletions
|
|
@ -1,6 +1,6 @@
|
|||
enum bottom { }
|
||||
|
||||
fn main() {
|
||||
let x = ptr::p2::addr_of(&()) as *bottom;
|
||||
let x = ptr::addr_of(&()) as *bottom;
|
||||
match x { } //~ ERROR non-exhaustive patterns
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
fn main() {
|
||||
let x : *~[int] = ptr::p2::addr_of(&~[1,2,3]);
|
||||
let x : *~[int] = ptr::addr_of(&~[1,2,3]);
|
||||
let y : *libc::c_void = x as *libc::c_void;
|
||||
unsafe {
|
||||
let _z = *y;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,6 @@ fn foo(i:int, j: @~str) -> foo {
|
|||
fn main() {
|
||||
let cat = ~"kitty";
|
||||
let po = comm::Port(); //~ ERROR missing `send`
|
||||
let ch = comm::Chan(po); //~ ERROR missing `send`
|
||||
let ch = comm::Chan(&po); //~ ERROR missing `send`
|
||||
comm::send(ch, foo(42, @cat)); //~ ERROR missing `send`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue