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
test "aoeu" { var x: i32 = 1234; x += 1; }
This should be error: variable 'x' modified but not read. In order to silence the error, one could use the underscore identifier:
error: variable 'x' modified but not read
test "aoeu" { var x: i32 = 1234; x += 1; _ = x; }
This second test is expected to pass.
Thanks to @mattsta for identifying this missing compile error in #2303.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This should be
error: variable 'x' modified but not read
. In order to silence the error, one could use the underscore identifier:This second test is expected to pass.
Thanks to @mattsta for identifying this missing compile error in #2303.
The text was updated successfully, but these errors were encountered: