{"action":"created","issue":{"url":"https://api.github.com/repos/laumann/compiletest-rs/issues/29","labels_url":"https://api.github.com/repos/laumann/compiletest-rs/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/laumann/compiletest-rs/issues/29/comments","events_url":"https://api.github.com/repos/laumann/compiletest-rs/issues/29/events","html_url":"https://github.com/laumann/compiletest-rs/issues/29","id":115091595,"number":29,"title":"Test that the error position is good","user":{"login":"antoyo","id":584972,"avatar_url":"https://avatars.githubusercontent.com/u/584972?v=3","gravatar_id":"","url":"https://api.github.com/users/antoyo","html_url":"https://github.com/antoyo","followers_url":"https://api.github.com/users/antoyo/followers","following_url":"https://api.github.com/users/antoyo/following{/other_user}","gists_url":"https://api.github.com/users/antoyo/gists{/gist_id}","starred_url":"https://api.github.com/users/antoyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoyo/subscriptions","organizations_url":"https://api.github.com/users/antoyo/orgs","repos_url":"https://api.github.com/users/antoyo/repos","events_url":"https://api.github.com/users/antoyo/events{/privacy}","received_events_url":"https://api.github.com/users/antoyo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-04T16:26:21Z","updated_at":"2015-11-04T17:30:02Z","closed_at":"2015-11-04T16:29:16Z","body":"Hello.\r\nIs it possible to test that a specific error is at the specified position.\r\nFor instance, I would like to be able to write something like:\r\n\r\n```\r\n// error-pattern: 14:13: 14:20 error: use of unsupported type name `&'a str` [E0412]\r\n```\r\n\r\ninstead of:\r\n\r\n```\r\n// error-pattern: error: use of unsupported type name `&'a str` [E0412]\r\n```\r\n\r\nBut it does not work.\r\nIs there a way to do this?\r\n\r\nIf not, it would be very useful to test compiler plugins or lints that span a lot of errors to ensure that the errors are at the expected position.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/laumann/compiletest-rs/issues/comments/153800934","html_url":"https://github.com/laumann/compiletest-rs/issues/29#issuecomment-153800934","issue_url":"https://api.github.com/repos/laumann/compiletest-rs/issues/29","id":153800934,"user":{"login":"antoyo","id":584972,"avatar_url":"https://avatars.githubusercontent.com/u/584972?v=3","gravatar_id":"","url":"https://api.github.com/users/antoyo","html_url":"https://github.com/antoyo","followers_url":"https://api.github.com/users/antoyo/followers","following_url":"https://api.github.com/users/antoyo/following{/other_user}","gists_url":"https://api.github.com/users/antoyo/gists{/gist_id}","starred_url":"https://api.github.com/users/antoyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoyo/subscriptions","organizations_url":"https://api.github.com/users/antoyo/orgs","repos_url":"https://api.github.com/users/antoyo/repos","events_url":"https://api.github.com/users/antoyo/events{/privacy}","received_events_url":"https://api.github.com/users/antoyo/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T17:30:02Z","updated_at":"2015-11-04T17:30:02Z","body":"The `//~ERROR` pattern only checks the line, not the columns, which is what I want to test.\r\n\r\nIs there any way of doing this?"}}