Multiple #[test]
attributes run the test multiple times.
#90979
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
If a function has multiple
#[test]
attributes, the test is run as many times as the attribute is repeated withcargo test
.The following code runs
doing_the_thing
8 times:I expected to see this happen: The compiler errors
Instead, this happened: It compiles fine and the test is run 8 times
Meta
rustc --version --verbose
:Happens on nightly as well:
cc @GuillaumeGomez
The text was updated successfully, but these errors were encountered: