mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Add test for not linting on assert!(cfg!(..)).
This commit is contained in:
parent
25639101dd
commit
38ab1a6166
1 changed files with 3 additions and 0 deletions
|
@ -28,4 +28,7 @@ fn main() {
|
|||
debug_assert!(false); // #3948
|
||||
assert_const!(3);
|
||||
assert_const!(-1);
|
||||
|
||||
// Don't lint on this:
|
||||
assert!(cfg!(feature = "hey") || cfg!(not(feature = "asdf")));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue