summary refs log tree commit diff
path: root/src/test/ui/suggestions/impl-trait-missing-lifetime.stderr
blob: a3a339b13c4782e53272815dba6266587db818c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0106]: missing lifetime specifier
  --> $DIR/impl-trait-missing-lifetime.rs:1:31
   |
LL | fn f(_: impl Iterator<Item = &'_ ()>) {}
   |                               ^^ expected named lifetime parameter
   |
help: consider introducing a named lifetime parameter
   |
LL | fn f<'a>(_: impl Iterator<Item = &'a ()>) {}
   |     ++++                          ~~

error: aborting due to previous error

For more information about this error, try `rustc --explain E0106`.