rust-clippy/tests/ui/unnested_or_patterns3.rs
2020-07-01 00:15:21 +02:00

6 lines
186 B
Rust

#![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) {}
}