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
Description Currently there is no check for a field of a struct to be in the struct itself. This check can (and should) be done with static semantics.
For example, this code should raise an error:
enum Message { Move { x: i32, y: i32 }, } fn main() { let m = Message::Move {x : 1, y : 2}; if let Message::Move{ x: a, z: b} = m2{ println!("{}", a); println!("{}", b); } }
The text was updated successfully, but these errors were encountered:
simonegazza
No branches or pull requests
Description
Currently there is no check for a field of a struct to be in the struct itself. This check can (and should) be done with static semantics.
For example, this code should raise an error:
The text was updated successfully, but these errors were encountered: