unused_unit
triggers when the type annotation is needed to compile
#14577
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Uh oh!
There was an error while loading. Please reload this page.
Summary
When running the code snippet from the 2024 edition guide it triggers the
unused_unit
lint, even though removing the type annotation will make the code stop compiling.Encountered in bevyengine/bevy#18778
Lint Name
unused_unit
Reproducer
Output
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: