4 ms·
I believe it has more to do with the fact that function pointers are effectively &'static T (static references) and references are forbidden from being null. Bu
by duped 2y ago
I believe it has more to do with the fact that function pointers are effectively &'static T (static references) and references are forbidden from being null. But it's probably a bit of both.
In other words `0usize as fn ()` is insta-undefined behavior, and you can't have that in safe code.