]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0530.stderr
Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20
[rust.git] / src / test / ui / error-codes / E0530.stderr
1 error[E0530]: match bindings cannot shadow statics
2   --> $DIR/E0530.rs:6:9
3    |
4 LL |     static TEST: i32 = 0;
5    |     --------------------- the static `TEST` is defined here
6 ...
7 LL |         TEST => {}
8    |         ^^^^ cannot be named the same as a static
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0530`.