2020-01-30 11:53:47 -08:00
|
|
|
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 ()>) {}
|
2021-06-21 19:07:19 -07:00
|
|
|
| ++++ ~~
|
2020-01-30 11:53:47 -08:00
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0106`.
|