dependency_on_unit_never_type_fallback
suggests adding type param annotation inside a format string
#136562
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
L-dependency_on_unit_never_type_fallback
Lint: dependency_on_unit_never_type_fallback
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The
dependency_on_unit_never_type_fallback
lint seems to suggest to add a::<()>
type annotation inside a format string in some cases.Example:
Suggests the following changes
Raw Output
Meta
rustc --version --verbose
:This suggestion is not given on 1.83.0
The text was updated successfully, but these errors were encountered: