Silence errors that are implied by the errors in the `const` item definition. Add a primary span label.
9 lines
141 B
Rust
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
|
|
}
|