fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0271]: expected `foo` to be a fn item that returns `i32`, but it returns `()` 2 --> $DIR/issue-106991.rs:5:13 3 | 4LL | fn bar() -> impl Iterator<Item = i32> { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `i32` 6 | 7 = note: required for `Map<std::slice::IterMut<'_, Vec<u8>>, for<'a> fn(&'a mut Vec<u8>) {foo}>` to implement `Iterator` 8 9error: aborting due to previous error 10 11For more information about this error, try `rustc --explain E0271`.