]> git.lizzy.rs Git - rust.git/blob - tests/ui/error-codes/E0530.stderr
Auto merge of #106627 - Ezrashaw:no-e0711-without-staged-api, r=Mark-Simulacrum
[rust.git] / tests / 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`.