We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following two type-definition/module conflicts cause errors:
enum Foo {} mod Foo {}
struct Bar { x: bool } mod Bar {}
But unit and tuple structs, due to the special-casing to check for value conflicts, end up not checking for module conflicts, resulting in the following two examples compiling:
struct Foo; mod Foo {}
struct Bar(bool); mod Bar {}
The text was updated successfully, but these errors were encountered:
I found this issue when using a struct with fields. This only causes the error when the module is defined first.
https://play.rust-lang.org/?gist=f66e0f4649a86c845270&version=stable
The error does not occur with unit structs or tuple structs.
https://play.rust-lang.org/?gist=55e9c9cd9938220a1031&version=stable
Sorry, something went wrong.
This is in theory being fixed by #26421, but it looks like progress is slow there
Closing as duplicate of #21546.
No branches or pull requests
The following two type-definition/module conflicts cause errors:
But unit and tuple structs, due to the special-casing to check for value conflicts, end up not checking for module conflicts, resulting in the following two examples compiling:
The text was updated successfully, but these errors were encountered: