We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The match remains exhaustive with highlighted pattern removed, but it does not produce any warnings:
#![feature(or_patterns)] pub struct A; pub enum B { X, Y, } pub enum E { A(A), B(B), } pub fn f(e: E) -> () { match e { E::B(B::X) => (), E::B(B::Y | B::X) // ~~~~ | E::A(A) => (), } }