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