]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17718-patterns.stderr
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / issues / issue-17718-patterns.stderr
1 error[E0530]: match bindings cannot shadow statics
2   --> $DIR/issue-17718-patterns.rs:7:9
3    |
4 LL | static A1: usize = 1;
5    | --------------------- the static `A1` is defined here
6 ...
7 LL |         A1 => {}
8    |         ^^ cannot be named the same as a static
9
10 error[E0530]: match bindings cannot shadow statics
11   --> $DIR/issue-17718-patterns.rs:8:9
12    |
13 LL | static mut A2: usize = 1;
14    | ------------------------- the static `A2` is defined here
15 ...
16 LL |         A2 => {}
17    |         ^^ cannot be named the same as a static
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0530`.