mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +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
|
||||
assert_const!(3);
|
||||
assert_const!(-1);
|
||||
|
||||
// Don't lint on this:
|
||||
assert!(cfg!(feature = "hey") || cfg!(not(feature = "asdf")));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user