{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/23224","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/23224/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/23224/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/23224/events","html_url":"https://github.com/rust-lang/rust/issues/23224","id":60352594,"number":23224,"title":"Potential error in error (warning) message","user":{"login":"homebru","id":65472,"avatar_url":"https://avatars.githubusercontent.com/u/65472?v=3","gravatar_id":"","url":"https://api.github.com/users/homebru","html_url":"https://github.com/homebru","followers_url":"https://api.github.com/users/homebru/followers","following_url":"https://api.github.com/users/homebru/following{/other_user}","gists_url":"https://api.github.com/users/homebru/gists{/gist_id}","starred_url":"https://api.github.com/users/homebru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homebru/subscriptions","organizations_url":"https://api.github.com/users/homebru/orgs","repos_url":"https://api.github.com/users/homebru/repos","events_url":"https://api.github.com/users/homebru/events{/privacy}","received_events_url":"https://api.github.com/users/homebru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-09T14:39:45Z","updated_at":"2015-03-09T14:39:45Z","closed_at":null,"body":"I am too new at rust to know if this is really an issue or not.\r\n\r\nI was trying to get the sample \"guess\" program to work. At one point I got this warning:\r\n> warning: pattern binding `Less` is named the same as one of the variants of the type `core::cmp::Ordering` [E0170]\r\n\r\nSo I change my namespace to use '**core**' and I got this error:\r\n> error: failed to resolve. Use of undeclared type or module `core::cmp::Ordering`\r\n\r\nIn the end, the solution was to use \"**std**::cmp::Ordering::Less\" - so the bug(?) is the warning message steering me to the wrong namespace."}}