let_unit_value
still has a false positive when the expression is an async function with a generic return type
#10455
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
Summary
Similarly to the last comment in #8998 before it was closed, this lint is emitted in error, since the let binding is used to specify the return type in this case. Satisftying the lint by removing the let binding altogether causes a compiler error.
Lint Name
let_unit_value
Reproducer
Version
Additional Labels
@rustbot label +l-suggestion-causes-error
The text was updated successfully, but these errors were encountered: