fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0530]: match bindings cannot shadow unit variants 2 --> $DIR/issue-27033.rs:3:9 3 | 4LL | None @ _ => {} 5 | ^^^^ cannot be named the same as a unit variant 6 --> $SRC_DIR/std/src/prelude/mod.rs:LL:COL 7 | 8 = note: the unit variant `None` is defined here 9 10error[E0530]: match bindings cannot shadow constants 11 --> $DIR/issue-27033.rs:7:9 12 | 13LL | const C: u8 = 1; 14 | ---------------- the constant `C` is defined here 15LL | match 1 { 16LL | C @ 2 => { 17 | ^ cannot be named the same as a constant 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0530`.