1 error[E0530]: match bindings cannot shadow unit variants
2 --> $DIR/issue-27033.rs:3:9
4 LL | None @ _ => {} //~ ERROR match bindings cannot shadow unit variants
5 | ^^^^ cannot be named the same as a unit variant
7 error[E0530]: match bindings cannot shadow constants
8 --> $DIR/issue-27033.rs:7:9
11 | ---------------- the constant `C` is defined here
13 LL | C @ 2 => { //~ ERROR match bindings cannot shadow constant
14 | ^ cannot be named the same as a constant
16 error: aborting due to 2 previous errors
18 For more information about this error, try `rustc --explain E0530`.