]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-27033.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-27033.stderr
1 error[E0530]: match bindings cannot shadow unit variants
2   --> $DIR/issue-27033.rs:3:9
3    |
4 LL |         None @ _ => {} //~ ERROR match bindings cannot shadow unit variants
5    |         ^^^^ cannot be named the same as a unit variant
6
7 error[E0530]: match bindings cannot shadow constants
8   --> $DIR/issue-27033.rs:7:9
9    |
10 LL |     const C: u8 = 1;
11    |     ---------------- the constant `C` is defined here
12 LL |     match 1 {
13 LL |         C @ 2 => { //~ ERROR match bindings cannot shadow constant
14    |         ^ cannot be named the same as a constant
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0530`.