Suggest pub const fn
for const pub fn
#76691
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Currently the error message is not great:
It would be better to suggest
pub const fn unwrap_or(self, default: T) -> T {
instead.Originally posted by @pickfire in #76330 (comment)
The text was updated successfully, but these errors were encountered: