mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
7 lines
186 B
Rust
7 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) {}
|
|
}
|