1 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
2 --> $DIR/needless_lifetimes_impl_trait.rs:15:5
4 LL | fn baz<'a>(&'a self) -> impl Foo + 'a {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 note: the lint level is defined here
8 --> $DIR/needless_lifetimes_impl_trait.rs:1:9
10 LL | #![deny(clippy::needless_lifetimes)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: aborting due to previous error