multiple-bound-locations reports on ?Sized
which cannot be in the where
clause
#12640
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
Summary
The new-ish multiple-bound-locations lint fires on unfixable code.
Lint Name
multiple-bound-locations
Reproducer
I tried this code:
taken from: https://github.com/tokio-rs/tokio/blob/035a968bddcadcbfeff02efa7ccf1f5d9b69f149/tokio-stream/src/stream_map.rs#L470-L482
I saw this happen:
I expected to see this happen: No lint fired here, as long as
?Sized
cannot live in awhere
-clause.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: