{"action":"opened","issue":{"url":"https://api.github.com/repos/tokio-rs/website/issues/254","repository_url":"https://api.github.com/repos/tokio-rs/website","labels_url":"https://api.github.com/repos/tokio-rs/website/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/tokio-rs/website/issues/254/comments","events_url":"https://api.github.com/repos/tokio-rs/website/issues/254/events","html_url":"https://github.com/tokio-rs/website/issues/254","id":384054118,"node_id":"MDU6SXNzdWUzODQwNTQxMTg=","number":254,"title":"Getting Asynchronous section has invalid example","user":{"login":"bobrik","id":89186,"node_id":"MDQ6VXNlcjg5MTg2","avatar_url":"https://avatars0.githubusercontent.com/u/89186?v=4","gravatar_id":"","url":"https://api.github.com/users/bobrik","html_url":"https://github.com/bobrik","followers_url":"https://api.github.com/users/bobrik/followers","following_url":"https://api.github.com/users/bobrik/following{/other_user}","gists_url":"https://api.github.com/users/bobrik/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrik/subscriptions","organizations_url":"https://api.github.com/users/bobrik/orgs","repos_url":"https://api.github.com/users/bobrik/repos","events_url":"https://api.github.com/users/bobrik/events{/privacy}","received_events_url":"https://api.github.com/users/bobrik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-25T07:04:02Z","updated_at":"2018-11-25T07:04:02Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The second example here:\r\n\r\n* https://tokio.rs/docs/futures/getting_asynchronous/\r\n\r\nIf fails to compile with:\r\n\r\n```\r\nerror[E0271]: type mismatch resolving `<hello::HelloWorld as futures::Future>::Error == ()`\r\n  --> src/hello/mod.rs:43:5\r\n   |\r\n43 |     tokio::run(hello_world)\r\n   |     ^^^^^^^^^^ expected struct `std::io::Error`, found ()\r\n   |\r\n   = note: expected type `std::io::Error`\r\n              found type `()`\r\n   = note: required by `tokio::run`\r\n\r\nerror: aborting due to 2 previous errors\r\n\r\nSome errors occurred: E0271, E0432.\r\nFor more information about an error, try `rustc --explain E0271`.\r\n```\r\n\r\nError cannot be non-empty tuple for `tokio::run()`, plus `poll` does not refer to `Self::Error`."}}
{"actor":{"display_login":"bobrik"}}