-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
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?
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.