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
error: mismatched types:
expected `*const libc::c_void`,
found `*const libc::types::common::c95::c_void`
And now I'm lost :D Why does it say it found *const libc::types::common::c95::c_void? I didn't write that. Apparently there's an older version of libc where libc::c_void is a re-export of the long type (durka42 told me that on IRC).
This is what I would expect the error message to look like:
This should be a duplicate of another issue, but I can't seem to find it at the moment.
The only reason we don't do "aka" right now is that we don't actually have that information. I do believe that newer compilers have the version number though. @Manishearth was that you?
No, I just made it mention that there may be two crates in scope when it hits the error. rust doesn't know about crate versions, though it can attempt to extract it from the --extern flags cargo passes to it.
I'm doing the following:
which gives me
So I added a cast:
This results in:
And now I'm lost :D Why does it say it found
*const libc::types::common::c95::c_void
? I didn't write that. Apparently there's an older version of libc wherelibc::c_void
is a re-export of the long type (durka42 told me that on IRC).This is what I would expect the error message to look like:
This would still be a little bit confusing. Maybe include the version numbers somehow?
The text was updated successfully, but these errors were encountered: