Code
pub const _: () = {
// ...
};
Current output
Desired output
warning: ...
--> src/bin/main.rs:2:14
|
1 | pub const _: () = {
| ^^^
|
= note: `#[warn(unused_pub)]` on by default
help: remove these parentheses
|
1 - pub const _: () = {
1 + const _: () = {
|
Rationale and extra context
No response
Other cases
Rust Version
rustc 1.90.0-nightly (a00149764 2025-07-14)
binary: rustc
commit-hash: a001497644bc229f1abcc5b2528733386591647f
commit-date: 2025-07-14
host: aarch64-unknown-linux-gnu
release: 1.90.0-nightly
LLVM version: 20.1.8
Anything else?
No response
Code
Current output
Desired output
Rationale and extra context
No response
Other cases
Rust Version
Anything else?
No response