]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-27033.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.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 @ _ => {}
5 | ^^^^ cannot be named the same as a unit variant
6 |
7 ::: $SRC_DIR/std/src/prelude/mod.rs:LL:COL
8 |
9 LL | pub use super::v1::*;
10 | ------------ the unit variant `None` is defined here
11
12 error[E0530]: match bindings cannot shadow constants
13 --> $DIR/issue-27033.rs:7:9
14 |
15 LL | const C: u8 = 1;
16 | ---------------- the constant `C` is defined here
17 LL | match 1 {
18 LL | C @ 2 => {
19 | ^ cannot be named the same as a constant
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0530`.