Closed Thomspoon closed 7 years ago
When running the example on the front page, I get this dastardly output from the compiler:
error[E0281]: type mismatch: the typefn(&mut iron::Request<', '>) -> std::result::Result<iron::Response, iron::IronError> {main::handler}implements the traitfor<'r, 'r, 'r> std::ops::Fn<(&'r mut iron::Request<'r, 'r>,)>, but the traitfor<'r, 'r, 'r> std::ops::Fn<(&'r mut iron::request::Request<'r, 'r>,)>is required (expected structiron::request::Request, found structiron::Request)
error[E0281]: type mismatch: the type
implements the trait
, but the trait
is required (expected struct
, found struct
)
Could this be related to rustc's problems with higher-ranked trait bounds?
There shouldn't be a difference between iron::request::Request and iron::Request.
Nope.
www.ironframework.io instructs you to use iron = "0.4.*"in your dependencies. Changing it to the updated "0.5.*" fixed this issue. Might need to update the version?
iron = "0.4.*"
When running the example on the front page, I get this dastardly output from the compiler:
error[E0281]: type mismatch: the type
fn(&mut iron::Request<', '>) -> std::result::Result<iron::Response, iron::IronError> {main::handler}implements the trait
for<'r, 'r, 'r> std::ops::Fn<(&'r mut iron::Request<'r, 'r>,)>, but the trait
for<'r, 'r, 'r> std::ops::Fn<(&'r mut iron::request::Request<'r, 'r>,)>is required (expected struct
iron::request::Request, found struct
iron::Request)
Could this be related to rustc's problems with higher-ranked trait bounds?
There shouldn't be a difference between iron::request::Request and iron::Request.