summary refs log tree commit diff
path: root/src/test/ui/issue-34047.stderr
blob: 0c109bffb247cd3a7b9c369ffb2a33ec6334ed77 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0530]: match bindings cannot shadow constants
  --> $DIR/issue-34047.rs:15:13
   |
11 | const C: u8 = 0;
   | ---------------- a constant `C` is defined here
...
15 |         mut C => {} //~ ERROR match bindings cannot shadow constants
   |             ^ cannot be named the same as a constant

error: aborting due to previous error