-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
cross-crate class construction fails #3012
Comments
I'll look at this. I'm suspecting that the problem is that |
structs also have this problem using the field initialization syntax |
Couldn't reproduce with 0d7bef4 (I couldn't get rust-socket to compile with the current version of rustc, but I made a self-contained example), so I added the test case. |
@brson, do you have a test case? I would like to fix this ASAP if it is still a bug. |
You can't construct cross-crate structs. Embarrassing. Fix underway. |
Fix match arm block flattening
Automatic sync from rustc
In https://github.com/jdm/rust-socket there is code like this:
From a different crate I do:
And I get:
This is with rust f676547
Work around for now is to export a function that calls the ctor for me.
(I know instance construction is being actively worked on atm, but it seems like there may be a missing unit test for this case).
The text was updated successfully, but these errors were encountered: