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

error: aborting due to previous error

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