News for hackers. Stuff that matters.
Re:Functional Language Features in Rust – Iterators and Clos... by steveklabnik on Tuesday March 07, 2017 @06:06PM (#13816056)
Thanks!

To answer your last question, not yet. There was an RFC for this, but it was recently postponed; closures rely heavily on traits and we are in the process of re-doing the internals of the trait system. If I remember the reason correctly.

Re:Functional Language Features in Rust – Iterators and Clos... by eddyb on Tuesday March 07, 2017 @06:33PM (#13816318)
Indeed, the way you would be generic over generic closures would be "type HRTB" (e.g. F: for<T: Clone> Fn(&T) -> T), which depends on the trait system overhaul, just like ATC.