Can't compare FFI function pointers #38848
Labels
I-needs-decision
Issue: In need of a decision.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
extern "fastcall"
,"system"
,"cdecl"
and some others function pointers cannot be compared.I tried this code:
https://is.gd/5JBZee
I expected to see this happen: the code compiles fine.
Instead, this happened:
Replacing
fastcall
withC
in this example, or getting rid ofextern "fastcall"
entirely results in code that compiles fine:https://is.gd/JI89Zs
rustc 1.16.0-nightly (4682271 2017-01-03)
The text was updated successfully, but these errors were encountered: