1#### Note: this error code is no longer emitted by the compiler23Static and const variables can refer to other const variables. But a const4variable cannot refer to a static variable.56Erroneous code example:78```9static X: i32 = 42;10const Y: i32 = X;11```1213In this example, `Y` cannot refer to `X`. To fix this, the value can be14extracted as a const and then used:1516```17const A: i32 = 42;18static X: i32 = A;19const Y: i32 = A;20```
Findings
✓ No findings reported for this file.