Open
Description
It's related to the fact that the Iterator
is higher-ranked.
struct Module;
fn modules() -> Vec<Module> {
todo!()
}
fn locate_tests(module: &Module) -> impl Iterator<Item = Vec<&()>> {
modules()
.iter()
.flat_map(locate_tests)
.for_each(|mut x| {
x.push(());
});
[].into_iter()
}
fn main() {}
Metadata
Metadata
Assignees
Type
Projects
Status
unknown