Open
Description
This is a followup to #39817 . Non-capturing closures now coerce to function pointers, but not to extern fn
pointers, as provided to C functions expecting a callback. Adding support for this would make it much simpler to call a C function and provide an appropriate callback inline.
(I'm also curious what it would take to make a capturing closure work as an extern function pointer, but that's a separate issue.)