mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-01 00:49:30 +00:00
15 lines
486 B
Text
15 lines
486 B
Text
error: the following explicit lifetimes could be elided: 'a
|
|
--> $DIR/ice-2774.rs:15:1
|
|
|
|
|
LL | pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::needless-lifetimes` implied by `-D warnings`
|
|
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>) {
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|