Suggestion for diagnostic imoprovement in case of null pointer that differs in mutability #85184
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=08b90ff4a7eec137c7da11cbb5f8d81f
The current output is:
Ideally it would suggest me to use
ptr::null_mut()
instead.@estebank (opened this issue because you always ask people on twitter to open issues about diagnostic improvements :) )
The text was updated successfully, but these errors were encountered: