Closed
Description
Unsafe functions are a strict super-set of safe functions. It seems like fn
s should freely coerce to the unsafe fn
of the appropriate type (i.e. fn() -> ()
to unsafe fn() -> ()
). See this playground link for an example. Is there any particular reason not to allow this?