enum Foo {
Relaxed,
SeqCst,
StressedOut,
}
use Foo::{Relaxed, SeqCst, StressedOut};
fn main() {
let a = (Relaxed, Relaxed);
match a {
(Relaxed, Relaxed) => {}
_ => {}
}
}
we get an error since an identifier is bound multiple times, but this is incorrect.