librustc: WIP patch for using the return value.
This commit is contained in:
parent
7720c15ae1
commit
c995a62d44
26 changed files with 779 additions and 407 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue