fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
560 B16 linesraw
1error: the following explicit lifetimes could be elided: 'a
2  --> $DIR/ice-2774.rs:15:28
3   |
4LL | pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
5   |                            ^^                  ^^
6   |
7   = note: `-D clippy::needless-lifetimes` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
9help: elide the lifetimes
10   |
11LL - pub fn add_barfoos_to_foos<'a>(bars: &HashSet<&'a Bar>) {
12LL + pub fn add_barfoos_to_foos(bars: &HashSet<&Bar>) {
13   |
14
15error: aborting due to previous error
16