Closed
Description
Location
https://doc.rust-lang.org/nightly/std/primitive.fn.html#trait-implementations-1
Summary
The documentation on the primitive fn()
says that
Due to a temporary restriction in Rust’s type system, these traits are only implemented on functions that take 12 arguments or less, with the
"Rust"
and"C"
ABIs. In the future, this may change:
This is no longer the case, the traits are implemented for all function pointer types, even on stable. I assume this just needs a documentation update, but the fact that this is such a big change makes me hesitant to do it myself without confirming.