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 1
1
error: 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
3
3
|
4
4
LL | pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 1
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:17 :5
2
+ --> $DIR/needless_lifetimes_impl_trait.rs:15 :5
3
3
|
4
4
LL | fn baz<'a>(&'a self) -> impl Foo + 'a {
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
note: the lint level is defined here
8
- --> $DIR/needless_lifetimes_impl_trait.rs:3 :9
8
+ --> $DIR/needless_lifetimes_impl_trait.rs:1 :9
9
9
|
10
10
LL | #![deny(clippy::needless_lifetimes)]
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments