{"action":"opened","issue":{"url":"https://api.github.com/repos/iron/staticfile/issues/72","repository_url":"https://api.github.com/repos/iron/staticfile","labels_url":"https://api.github.com/repos/iron/staticfile/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/iron/staticfile/issues/72/comments","events_url":"https://api.github.com/repos/iron/staticfile/issues/72/events","html_url":"https://github.com/iron/staticfile/issues/72","id":143536624,"number":72,"title":"Router example currently fails ","user":{"login":"SirVer","id":140115,"avatar_url":"https://avatars.githubusercontent.com/u/140115?v=3","gravatar_id":"","url":"https://api.github.com/users/SirVer","html_url":"https://github.com/SirVer","followers_url":"https://api.github.com/users/SirVer/followers","following_url":"https://api.github.com/users/SirVer/following{/other_user}","gists_url":"https://api.github.com/users/SirVer/gists{/gist_id}","starred_url":"https://api.github.com/users/SirVer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirVer/subscriptions","organizations_url":"https://api.github.com/users/SirVer/orgs","repos_url":"https://api.github.com/users/SirVer/repos","events_url":"https://api.github.com/users/SirVer/events{/privacy}","received_events_url":"https://api.github.com/users/SirVer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-25T16:32:46Z","updated_at":"2016-03-25T16:32:46Z","closed_at":null,"body":"On a fresh checkout, running `cargo run --example router` yields these errors:\r\n\r\n~~~\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`\r\n   Compiling language-tags v0.2.2\r\n   Compiling traitobject v0.0.1\r\n   Compiling matches v0.1.2\r\n   Compiling sequence_trie v0.0.13\r\n   Compiling modifier v0.1.0\r\n   Compiling winapi v0.2.6\r\n   Compiling pkg-config v0.3.8\r\n   Compiling traitobject v0.0.3\r\n   Compiling libc v0.2.8\r\n   Compiling lazy_static v0.1.15\r\n   Compiling unicode-bidi v0.2.3\r\n   Compiling unsafe-any v0.4.1\r\n   Compiling httparse v1.1.1\r\n   Compiling typemap v0.3.3\r\n   Compiling typeable v0.1.2\r\n   Compiling semver v0.1.20\r\n   Compiling unicode-normalization v0.1.2\r\n   Compiling rustc-serialize v0.3.18\r\n   Compiling gcc v0.3.26\r\n   Compiling openssl-sys v0.7.8\r\n   Compiling num_cpus v0.2.11\r\n   Compiling rand v0.3.14\r\n   Compiling log v0.3.5\r\n   Compiling route-recognizer v0.1.11\r\n   Compiling rustc_version v0.1.7\r\n   Compiling plugin v0.2.6\r\n   Compiling winapi-build v0.1.1\r\n   Compiling mime v0.2.0\r\n   Compiling hpack v0.2.0\r\n   Compiling openssl v0.7.8\r\n   Compiling openssl-sys-extras v0.7.8\r\n   Compiling unicase v1.4.0\r\n   Compiling kernel32-sys v0.2.1\r\n   Compiling time v0.1.34\r\n   Compiling num v0.1.31\r\n   Compiling error v0.1.9\r\n   Compiling bitflags v0.4.0\r\n   Compiling solicit v0.4.4\r\n   Compiling serde v0.6.15\r\n   Compiling conduit-mime-types v0.7.3\r\n   Compiling uuid v0.1.18\r\n   Compiling url v0.5.7\r\n   Compiling mime v0.1.3\r\n   Compiling cookie v0.2.2\r\n   Compiling hyper v0.7.2\r\n   Compiling hyper v0.8.0\r\n   Compiling iron v0.3.0\r\n   Compiling iron v0.2.6\r\n   Compiling router v0.1.1\r\n   Compiling iron-test v0.2.0\r\n   Compiling mount v0.0.10\r\n   Compiling staticfile v0.1.0 (file:///private/tmp/staticfile)\r\nexamples/router.rs:38:10: 38:13 error: type mismatch: the type `fn(&mut iron::request::Request<'_, '_>) -> core::result::Result<iron::response::Response, iron::error::IronError> {say_hello}` implements the trait `for<'r, 'r, 'r> core::ops::Fn<(&'r mut iron::request::Request<'r, 'r>,)>`, but the trait `for<'r, 'r, 'r> core::ops::Fn<(&'r mut iron::request::Request<'r, 'r>,)>` is required (expected struct `iron::request::Request`, found a different struct `iron::request::Request`) [E0281]\r\nexamples/router.rs:38         .get(\"/hello\", say_hello);\r\n                               ^~~\r\nexamples/router.rs:38:10: 38:13 help: run `rustc --explain E0281` to see a detailed explanation\r\nexamples/router.rs:42:10: 42:15 error: the trait `for<'r, 'r, 'r> core::ops::Fn<(&'r mut iron::request::Request<'r, 'r>,)>` is not implemented for the type `router::router::Router` [E0277]\r\nexamples/router.rs:42         .mount(\"/\", router)\r\n                               ^~~~~\r\nexamples/router.rs:42:10: 42:15 help: run `rustc --explain E0277` to see a detailed explanation\r\nerror: aborting due to 2 previous errors\r\nerror: Could not compile `staticfile`.\r\n~~~"}}