2022-11-21 13:34:47 -06:00
|
|
|
error: the following explicit lifetimes could be elided: 'a
|
2023-07-02 07:35:19 -05:00
|
|
|
--> $DIR/ice-2774.rs:15:28
|
2020-10-09 05:45:29 -05:00
|
|
|
|
|
|
|
|
LL | pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
|
2023-07-02 07:35:19 -05:00
|
|
|
| ^^ ^^
|
2020-10-09 05:45:29 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-lifetimes` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
|
2023-02-10 07:01:19 -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-10-09 05:45:29 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|