1 error[E0530]: match bindings cannot shadow statics
2 --> $DIR/issue-17718-patterns.rs:17:9
4 LL | static A1: usize = 1;
5 | --------------------- a static `A1` is defined here
7 LL | A1 => {} //~ ERROR: match bindings cannot shadow statics
8 | ^^ cannot be named the same as a static
10 error[E0530]: match bindings cannot shadow statics
11 --> $DIR/issue-17718-patterns.rs:18:9
13 LL | static mut A2: usize = 1;
14 | ------------------------- a static `A2` is defined here
16 LL | A2 => {} //~ ERROR: match bindings cannot shadow statics
17 | ^^ cannot be named the same as a static
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0530`.