mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +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
|
debug_assert!(false); // #3948
|
||||||
assert_const!(3);
|
assert_const!(3);
|
||||||
assert_const!(-1);
|
assert_const!(-1);
|
||||||
|
|
||||||
|
// Don't lint on this:
|
||||||
|
assert!(cfg!(feature = "hey") || cfg!(not(feature = "asdf")));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue