Skip to content

Instantly share code, notes, and snippets.

@rkbodenner
Created June 4, 2013 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkbodenner/5706847 to your computer and use it in GitHub Desktop.
Save rkbodenner/5706847 to your computer and use it in GitHub Desktop.
Rust type mismatch compile error
[rust] whsky:ralph-libuv-tasks  rust run server.rs
server.rs:19:16: 19:21 error: mismatched types: expected `&mut ~[<V37>]` but found `~[u8]` (expected &-ptr but found vector)
server.rs:19 vec::push(bytes, byte as u8);
^~~~~
error: aborting due to previous error
rust: task failed at 'explicit failure', /Users/ralph/_code/rust-0.6/src/libsyntax/diagnostic.rs:99
rust: task failed at 'explicit failure', /Users/ralph/_code/rust-0.6/src/librustc/rustc.rc:357
rust: domain main @0x7fb88200c210 root task failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment