]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-34047.stderr
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-34047.stderr
1 error[E0530]: match bindings cannot shadow constants
2   --> $DIR/issue-34047.rs:5:13
3    |
4 LL | const C: u8 = 0;
5    | ---------------- the constant `C` is defined here
6 ...
7 LL |         mut C => {}
8    |             ^ cannot be named the same as a constant
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0530`.