unnecessary_literal_bound
triggered on trait implementation
#14085
Labels
A-lint
Area: New lints
I-false-positive
Issue: The lint was triggered on code it shouldn't have
L-pedantic
Lint: Belongs in the pedantic lint group
Description
The lint triggers on trait implementations where it forces users to refine the return type instead of following whatever is present in the trait definition.
I would excpect the lint to only trigger on the
bar
function and not onfoo
.There's ongoing discussion about refining RPITIT and I think this trait should behave similarly to what is done there.
Version
Additional Labels
@rustbot label +A-lint +L-pedantic +I-false-positive
The text was updated successfully, but these errors were encountered: