summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-2774.stderr
blob: c5ea0b16d1be472b035885bf1d13201ae42bd4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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