File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
2- --> $DIR/ice-2774.rs:17 :1
2+ --> $DIR/ice-2774.rs:15 :1
33 |
44LL | pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 11error: 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:17 :5
2+ --> $DIR/needless_lifetimes_impl_trait.rs:15 :5
33 |
44LL | fn baz<'a>(&'a self) -> impl Foo + 'a {
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 |
77note: the lint level is defined here
8- --> $DIR/needless_lifetimes_impl_trait.rs:3 :9
8+ --> $DIR/needless_lifetimes_impl_trait.rs:1 :9
99 |
1010LL | #![deny(clippy::needless_lifetimes)]
1111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments