librustc: WIP patch for using the return value.

This commit is contained in:
Patrick Walton 2013-04-18 15:53:29 -07:00
parent 7720c15ae1
commit c995a62d44
26 changed files with 779 additions and 407 deletions

View file

@ -17,11 +17,11 @@ fn foo<T:Copy + Const>(x: T) -> T { x }
struct F { field: int }
pub fn main() {
foo(1);
/*foo(1);
foo(~"hi");
foo(~[1, 2, 3]);
foo(F{field: 42});
foo((1, 2u));
foo(@1);
foo(@1);*/
foo(~1);
}

View file

@ -11,7 +11,7 @@
mod rustrt {
pub extern {
pub fn rust_dbg_call(cb: *u8, data: libc::uintptr_t)
-> libc::uintptr_t;
-> libc::uintptr_t;
}
}