mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-20 20:44:52 +00:00
11 lines
403 B
Plaintext
11 lines
403 B
Plaintext
error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
|
|
--> $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`
|
|
|
|
error: aborting due to previous error
|
|
|