-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Closed
Labels
A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustc
Milestone
Description
// error-pattern: type cat cannot be dereferenced
class cat { new() {} }
fn main() {
let kitty : cat = cat();
log (error, *kitty);
}
This test fails correctly as is, but if I move the error pattern to be a //! ERROR comment on the same line with log (error, *kitty);, the test runner complains it didn't find the expected error pattern. As rustc reports the error on the correct line, I can only guess this has something to do with the asterisk in *kitty, but I'm not totally sure.
Metadata
Metadata
Assignees
Labels
A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustc