Skip to content

Instantly share code, notes, and snippets.

@killerswan
Created December 14, 2013 11:50
Show Gist options
  • Save killerswan/7958294 to your computer and use it in GitHub Desktop.
Save killerswan/7958294 to your computer and use it in GitHub Desktop.
Rust string conversions needed...
src/testloop-rs.rs:48:27: 48:39 error: mismatched types: expected `&'static str` but found `&~str` (expected &'static str but found &-ptr)
src/testloop-rs.rs:48 "--test", args.head(),
^~~~~~~~~~~~
src/testloop-rs.rs:47:16: 50:36 error: mismatched types: expected `&[~str]` but found `[&'static str, .. 8]` (str storage differs: expected ~ but found &'static )
src/testloop-rs.rs:47 run("rustc", ["-o", "loop_test",
src/testloop-rs.rs:48 "--test", args.head(),
src/testloop-rs.rs:49 "--allow", "dead_code",
src/testloop-rs.rs:50 "--opt-level", "0"]);
error: aborting due to 2 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment