Files
rust/tests/ui/consts/issue-78655.rs
Esteban Küber cc492edc9d Tweak unevaluated constant in pattern error
Silence errors that are implied by the errors in the `const` item definition.

Add a primary span label.
2024-12-04 20:29:35 +00:00

9 lines
141 B
Rust

const FOO: *const u32 = {
let x;
&x //~ ERROR E0381
};
fn main() {
let FOO = FOO; // ok, the `const` already emitted an error
}