Missing parenthesis in static_mut_refs
diagnostic suggestion
#131977
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
The suggestion removes the left parenthesis, but keeps the right parenthesis. Of course the proposed change does not compile.
Original code:
(&TEST)
suggestion:&raw const TEST)
Other cases
No response
Rust Version
rustc 1.84.0-nightly (da93539 2024-10-19)
binary: rustc
commit-hash: da93539
commit-date: 2024-10-19
host: aarch64-apple-darwin
release: 1.84.0-nightly
LLVM version: 19.1.1
Anything else?
Link to rust playground
The text was updated successfully, but these errors were encountered: