Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In test suite, strange error-pattern behavior on lines with a * #2395

Closed
catamorphism opened this issue May 17, 2012 · 1 comment
Closed
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc

Comments

@catamorphism
Copy link
Contributor

// 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.

@ghost ghost assigned brson May 17, 2012
@nikomatsakis
Copy link
Contributor

Dup of #1476

bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
add some dyn upcasting tests

Copied from the rustc test suite.
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc
Projects
None yet
Development

No branches or pull requests

3 participants