summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-34047.stderr
blob: f770ded50d0fdafafef18df64306868eeabfd325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0530]: match bindings cannot shadow constants
  --> $DIR/issue-34047.rs:5:13
   |
LL | const C: u8 = 0;
   | ---------------- the constant `C` is defined here
...
LL |         mut C => {}
   |             ^ cannot be named the same as a constant

error: aborting due to previous error

For more information about this error, try `rustc --explain E0530`.