2 ms·
I’m not at my computer but I thought non-capturing closures already will coerce into a fn.
by steveklabnik 5y ago
I’m not at my computer but I thought non-capturing closures already will coerce into a fn.
- nybble41 5y agoIt seems you're right. That didn't work the last time I tried it—which I admit was some time ago—but it does work in the latest stable version of rustc.
- steveklabnik 5y agoLooks like support was added about four years ago, but it is true this wasn’t the case a whole back. Glad it’s working now though!