fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
475 B14 linesraw
1error[E0106]: missing lifetime specifier
2  --> $DIR/impl-trait-missing-lifetime.rs:1:31
3   |
4LL | fn f(_: impl Iterator<Item = &'_ ()>) {}
5   |                               ^^ expected named lifetime parameter
6   |
7help: consider introducing a named lifetime parameter
8   |
9LL | fn f<'a>(_: impl Iterator<Item = &'a ()>) {}
10   |     ^^^^                          ^^
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0106`.