rust-clippy/tests/ui/unnested_or_patterns3.rs

7 lines
186 B
Rust
Raw Normal View History

#![warn(clippy::unnested_or_patterns)]
// Test that `unnested_or_patterns` does not trigger without enabling `or_patterns`
fn main() {
if let (0, 1) | (0, 2) | (0, 3) = (0, 0) {}
}