We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
assertions_on_constants
Checks for assert!(true) and assert!(false) calls.
Should probably be replaced by a panic!() or removed
assert!(false) assert!(true) const B: bool = false; assert!(B)
The text was updated successfully, but these errors were encountered:
Sure
Sorry, something went wrong.
No branches or pull requests
What it does
Checks for assert!(true) and assert!(false) calls.
Why is this bad?
Should probably be replaced by a panic!() or removed
Example
The text was updated successfully, but these errors were encountered: