{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/35964","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/35964/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/35964/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/35964/events","html_url":"https://github.com/rust-lang/rust/issues/35964","id":172994313,"number":35964,"title":"E0038 needs better underline","user":{"login":"jonathandturner","id":547158,"avatar_url":"https://avatars.githubusercontent.com/u/547158?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathandturner","html_url":"https://github.com/jonathandturner","followers_url":"https://api.github.com/users/jonathandturner/followers","following_url":"https://api.github.com/users/jonathandturner/following{/other_user}","gists_url":"https://api.github.com/users/jonathandturner/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathandturner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathandturner/subscriptions","organizations_url":"https://api.github.com/users/jonathandturner/orgs","repos_url":"https://api.github.com/users/jonathandturner/repos","events_url":"https://api.github.com/users/jonathandturner/events{/privacy}","received_events_url":"https://api.github.com/users/jonathandturner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-diagnostics","name":"A-diagnostics","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/E-easy","name":"E-easy","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-24T16:07:24Z","updated_at":"2016-08-26T16:10:01Z","closed_at":"2016-08-26T16:10:01Z","body":"Currently, we have:\r\n\r\n```\r\nerror[E0038]: the trait `Trait` cannot be made into an object\r\n  --> src/test/compile-fail/E0038.rs:15:1\r\n   |\r\n15 | fn call_foo(x: Box<Trait>) {\r\n   | ^ the trait `Trait` cannot be made into an object\r\n   |\r\n   = note: method `foo` references the `Self` type in its arguments or return type\r\n```\r\n\r\nA better underline would be something like:\r\n\r\n```\r\nerror[E0038]: the trait `Trait` cannot be made into an object\r\n  --> src/test/compile-fail/E0038.rs:15:1\r\n   |\r\n15 | fn call_foo(x: Box<Trait>) { //~ ERROR E0038\r\n   |                ^^^^^^^^^^ `Trait` cannot be made into an object\r\n   |\r\n   = note: method `foo` references the `Self` type in its arguments or return type\r\n```\r\n\r\nSince we may not have span information for that span, pick something close to it, like underlining the argument or the function name."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/242778783","html_url":"https://github.com/rust-lang/rust/issues/35964#issuecomment-242778783","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/35964","id":242778783,"user":{"login":"jonathandturner","id":547158,"avatar_url":"https://avatars.githubusercontent.com/u/547158?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathandturner","html_url":"https://github.com/jonathandturner","followers_url":"https://api.github.com/users/jonathandturner/followers","following_url":"https://api.github.com/users/jonathandturner/following{/other_user}","gists_url":"https://api.github.com/users/jonathandturner/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathandturner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathandturner/subscriptions","organizations_url":"https://api.github.com/users/jonathandturner/orgs","repos_url":"https://api.github.com/users/jonathandturner/repos","events_url":"https://api.github.com/users/jonathandturner/events{/privacy}","received_events_url":"https://api.github.com/users/jonathandturner/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T16:10:01Z","updated_at":"2016-08-26T16:10:01Z","body":"I poked around a little bit and started coming to the same conclusion.  I'll close for now."}}
{"actor":{"display_login":"jonathandturner"}}