mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 17:33:07 +00:00
Add test for not linting on assert!(cfg!(..)).
This commit is contained in:
parent
25639101dd
commit
38ab1a6166
@ -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…
Reference in New Issue
Block a user