2020-09-07 19:39:39 -05:00
|
|
|
error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
|
2020-09-29 16:06:08 -05:00
|
|
|
--> $DIR/needless_lifetimes_impl_trait.rs:15:5
|
2020-09-07 19:39:39 -05:00
|
|
|
|
|
|
|
|
LL | fn baz<'a>(&'a self) -> impl Foo + 'a {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2020-09-29 16:06:08 -05:00
|
|
|
--> $DIR/needless_lifetimes_impl_trait.rs:1:9
|
2020-09-07 19:39:39 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::needless_lifetimes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|