false positive needless_lifetimes when self is &Arc<Self> #7296
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
Lint name: needless_lifetimes
I tried this code:
Clippy complains that <'a> is a needless life time, but it appears to not be the case. None of the following alternatives compile:
Meta
Build using the Nightly version: 1.54.0-nightly
(2021-05-30 c1e8f3a)
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=12f0ac7dd5b7f413dffe26a765343475
The text was updated successfully, but these errors were encountered: