Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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