diff options
| author | Haitao Li <lihaitao@gmail.com> | 2011-11-17 22:46:44 +0800 |
|---|---|---|
| committer | Haitao Li <lihaitao@gmail.com> | 2011-11-17 22:50:08 +0800 |
| commit | f4eb25e0d032495fef50c445b211f2c2ff20eb9c (patch) | |
| tree | 68a48ec926eff37fd8a73359aabc230197c9ba2e /src/rt/rust.cpp | |
| parent | 388eed383f05dbc322d5808faf7d52091d0c0fca (diff) | |
| download | rust-f4eb25e0d032495fef50c445b211f2c2ff20eb9c.tar.gz rust-f4eb25e0d032495fef50c445b211f2c2ff20eb9c.zip | |
tutorial: Fix type mismatch in example FFI code
Compile error:
time.rs:13:23: 13:43 error: mismatched types: expected
*R[tv_sec=mMltv_usec=mMl] but found *R[tv_sec=Mltv_usec=Ml] (record
elements differ in mutability)
time.rs:13 libc::gettimeofday(std::ptr::addr_of(x),
std::ptr::null());
^~~~~~~~~~~~~~~~~~~~
error: aborting due to previous errors
rust: upcall fail 'explicit failure', ../src/comp/driver/session.rs:70
rust: domain main @0x9dfd178 root task failed
Diffstat (limited to 'src/rt/rust.cpp')
0 files changed, 0 insertions, 0 deletions
