]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0530]: match bindings cannot shadow constants |
0731742a | 2 | --> $DIR/issue-34047.rs:5:13 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | const C: u8 = 0; |
13cf67c4 | 5 | | ---------------- the constant `C` is defined here |
ff7c6d11 | 6 | ... |
532ac7d7 | 7 | LL | mut C => {} |
ff7c6d11 XL |
8 | | ^ cannot be named the same as a constant |
9 | ||
10 | error: aborting due to previous error | |
11 | ||
0531ce1d | 12 | For more information about this error, try `rustc --explain E0530`. |