Skip to content

Instantly share code, notes, and snippets.

@passcod
Last active August 29, 2015 14:01
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 passcod/c3dee4d5c30bcfa6a966 to your computer and use it in GitHub Desktop.
Save passcod/c3dee4d5c30bcfa6a966 to your computer and use it in GitHub Desktop.
rustc -L . --test tests.rs
tests.rs:23:5: 23:40 error: mismatched types: expected `(rast::http::StatusCode,collections::hashmap::HashMap<&str,&str>,B)` but found `(rast::http::StatusCode,collections::hashmap::HashMap<&'static str,&'static str>,std::io::mem::MemReader)` (expected type parameter but found struct std::io::mem::MemReader)
tests.rs:23 (rast::http::StatusCode(200), h, r)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests.rs:47:22: 47:54 error: cannot determine a type for this bounded type parameter: unconstrained type
tests.rs:47 println!("{:?}", app.call(env, heads, inpt, errr));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: in expansion of format_args!
<std macros>:2:23: 2:77 note: expansion site
<std macros>:1:1: 3:2 note: in expansion of println!
tests.rs:47:5: 47:56 note: expansion site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment