suggest adding #[test] on otherwise-dead code that looks like a test? #33166
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
On this code:
I currently get
What I need here is a
#[test]
before the function of course. Perhaps rustc could suggest this if some of the following hints are seen#[cfg(test)]
tests
test_*
I don't know if making suggestions based on names is considered unhygienic, but this would remove a small speed bump for new users.
The text was updated successfully, but these errors were encountered: