]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/issue-17718-patterns.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / pattern / issue-17718-patterns.stderr
CommitLineData
8faf50e0 1error[E0530]: match bindings cannot shadow statics
0731742a 2 --> $DIR/issue-17718-patterns.rs:7:9
8faf50e0
XL
3 |
4LL | static A1: usize = 1;
13cf67c4 5 | --------------------- the static `A1` is defined here
8faf50e0 6...
532ac7d7 7LL | A1 => {}
8faf50e0
XL
8 | ^^ cannot be named the same as a static
9
10error[E0530]: match bindings cannot shadow statics
0731742a 11 --> $DIR/issue-17718-patterns.rs:8:9
8faf50e0
XL
12 |
13LL | static mut A2: usize = 1;
13cf67c4 14 | ------------------------- the static `A2` is defined here
8faf50e0 15...
532ac7d7 16LL | A2 => {}
8faf50e0
XL
17 | ^^ cannot be named the same as a static
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0530`.