2022-10-28 12:18:07 -05:00
|
|
|
error: the following explicit lifetimes could be elided: 'a
|
2020-09-29 16:06:08 -05:00
|
|
|
--> $DIR/ice-2774.rs:15:1
|
2020-09-07 19:39:39 -05:00
|
|
|
|
|
|
|
|
LL | pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-lifetimes` implied by `-D warnings`
|
2023-01-31 08:12:03 -06:00
|
|
|
help: elide the lifetimes
|
|
|
|
|
|
|
|
|
LL - pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
|
|
|
|
LL + pub fn add_barfoos_to_foos(bars: &HashSet<&Bar>) {
|
|
|
|
|
|
2020-09-07 19:39:39 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|