diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/match_same_arms2.rs')
-rw-r--r-- | src/tools/clippy/tests/ui/match_same_arms2.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/match_same_arms2.rs b/src/tools/clippy/tests/ui/match_same_arms2.rs index 82b2c433d..60b2975be 100644 --- a/src/tools/clippy/tests/ui/match_same_arms2.rs +++ b/src/tools/clippy/tests/ui/match_same_arms2.rs @@ -239,4 +239,10 @@ fn main() { 3 => core::convert::identity::<u32>(todo!()), _ => 5, }; + + let _ = match 0 { + 0 => cfg!(not_enable), + 1 => cfg!(not_enable), + _ => false, + }; } |