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
struct Foo(u32); fn main() { let x = Foo(42); let _ = Foo { ..x }; }
This compiles and runs.
This shouldn't compile.
The text was updated successfully, but these errors were encountered:
Nominating
Sorry, something went wrong.
This issue also occurs in patterns, but there's also the additional issue of Ty-aliases being too transparent (instantiate_path):
Ty
instantiate_path
struct Foo<T> { x: T } type Ty = Foo<u32>; fn main() { match (Foo { x: () }) { Ty::<()> { x } => {} } }
91be125
No branches or pull requests
STR
Result
This compiles and runs.
Expected
This shouldn't compile.
The text was updated successfully, but these errors were encountered: