rust/tests/ui/extern/extern-const.stderr
Esteban Küber 692bc344d5 Make parse error suggestions verbose and fix spans
Go over all structured parser suggestions and make them verbose style.

When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
2024-07-12 03:02:57 +00:00

15 lines
386 B
Plaintext

error: extern items cannot be `const`
--> $DIR/extern-const.rs:14:11
|
LL | const rust_dbg_static_mut: c_int;
| ^^^^^^^^^^^^^^^^^^^
|
= note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
help: try using a static value
|
LL | static rust_dbg_static_mut: c_int;
| ~~~~~~
error: aborting due to 1 previous error