Add test for not linting on assert!(cfg!(..)).

This commit is contained in:
Mara Bos 2021-06-04 10:43:39 +02:00
parent 25639101dd
commit 38ab1a6166

View file

@ -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")));
}