{"action":"created","issue":{"url":"https://api.github.com/repos/bjz/gl-rs/issues/281","labels_url":"https://api.github.com/repos/bjz/gl-rs/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/bjz/gl-rs/issues/281/comments","events_url":"https://api.github.com/repos/bjz/gl-rs/issues/281/events","html_url":"https://github.com/bjz/gl-rs/issues/281","id":54718871,"number":281,"title":"example no longer compiles","user":{"login":"andrewrk","id":106511,"avatar_url":"https://avatars.githubusercontent.com/u/106511?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewrk","html_url":"https://github.com/andrewrk","followers_url":"https://api.github.com/users/andrewrk/followers","following_url":"https://api.github.com/users/andrewrk/following{/other_user}","gists_url":"https://api.github.com/users/andrewrk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrk/subscriptions","organizations_url":"https://api.github.com/users/andrewrk/orgs","repos_url":"https://api.github.com/users/andrewrk/repos","events_url":"https://api.github.com/users/andrewrk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-19T01:44:59Z","updated_at":"2015-01-19T02:11:48Z","closed_at":null,"body":"as of: rustc 1.0.0-nightly (f4f10dba2 2015-01-17 20:31:08 +0000)\r\n\r\nin static_basic.rs, glfw and window bindings need to have `mut`. When I do that, I get this:\r\n\r\n```\r\nsrc/main.rs:16:23: 16:29 error: cannot borrow data mutably in a captured outer variable in an `Fn` closure\r\nsrc/main.rs:16     gl::load_with(|s| window.get_proc_address(s));\r\n                                     ^~~~~~\r\nsrc/main.rs:16:19: 16:49 help: consider changing this closure to take self by mutable reference\r\nsrc/main.rs:16     gl::load_with(|s| window.get_proc_address(s));\r\n                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nerror: aborting due to previous error\r\n```\r\n\r\nI think `cargo test` should compile the examples, yeah?"},"comment":{"url":"https://api.github.com/repos/bjz/gl-rs/issues/comments/70438579","html_url":"https://github.com/bjz/gl-rs/issues/281#issuecomment-70438579","issue_url":"https://api.github.com/repos/bjz/gl-rs/issues/281","id":70438579,"user":{"login":"kvark","id":107301,"avatar_url":"https://avatars.githubusercontent.com/u/107301?v=3","gravatar_id":"","url":"https://api.github.com/users/kvark","html_url":"https://github.com/kvark","followers_url":"https://api.github.com/users/kvark/followers","following_url":"https://api.github.com/users/kvark/following{/other_user}","gists_url":"https://api.github.com/users/kvark/gists{/gist_id}","starred_url":"https://api.github.com/users/kvark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvark/subscriptions","organizations_url":"https://api.github.com/users/kvark/orgs","repos_url":"https://api.github.com/users/kvark/repos","events_url":"https://api.github.com/users/kvark/events{/privacy}","received_events_url":"https://api.github.com/users/kvark/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T02:11:48Z","updated_at":"2015-01-19T02:11:48Z","body":"I'm getting same errors when compiling tests on gfx-rs"}}