Skip to content

Mismatched record type message is backwards #2094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jdm opened this issue Apr 1, 2012 · 1 comment
Closed

Mismatched record type message is backwards #2094

jdm opened this issue Apr 1, 2012 · 1 comment
Labels
A-type-system Area: Type system

Comments

@jdm
Copy link
Contributor

jdm commented Apr 1, 2012

error: mismatched types: expected socket::sockaddr_basicbut found{family: int} (expected a record with field 'family' but found one with field 'sin_family')

The "expected a record with" looks like it should be the other way around, since the actual code I wrote was {family:0}.

@olsonjeffery
Copy link
Contributor

I noticed this just now, as well.. was really confusing because the record in question has, like, 3 different representations because of various OS/Arch combinations. Good times.

@ghost ghost assigned catamorphism Apr 5, 2012
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Add a command to build Kani using the release mode so we speed up the metrics collection. From my previous experience, this can speed up by approx 2x.
Kobzol pushed a commit to Kobzol/rust that referenced this issue Dec 30, 2024
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

3 participants