You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disagree that this is a dup; the other should be made specific to the type inference, since this is a glaring hole and not at all specific to extern "C" fn (like that issue).
Bare functions are another example of a scalar but non-numeric
type (like char) that should be handled separately in casts.
This disallows expressions like `0 as extern "Rust" fn() -> int;`.
It might be advantageous to allow casts between bare functions
and raw pointers in unsafe code in the future, to pass function
pointers between Rust and C.
Closes#8728
Rust allows casting 0 to a function pointer type like
extern "Rust" fn()
. This is unsafe.The text was updated successfully, but these errors were encountered: