by YatoRust · 6y ago · 0 comments
compose(|x| x, |x| x)
because the closures have the same type.It's a fun little thing, and a good example of why impl Trait in argument position is a really nice addition to Rust, even though based on what we were originally excited about (impl Trait in return position for returning Iterators and other such things), the argument position form didn't seem so important.