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
I tried this code:
fn main() { let tup = (500, 6.4, 1); let (x, y, z) = tup; println!("The value of x, y, z is: {x}, {}, {z}"); }
I expected to see this happen: Compile time error for providing an empty parenthesis in println!("The value of x, y, z is: {x}, {}, {z}");
println!("The value of x, y, z is: {x}, {}, {z}");
Instead, this happened:
The value of x, y, z is: 500, 500, 1 The value of variable x (500) was filled in for the empty parenthesis.
The value of x, y, z is: 500, 500, 1
x
500
rustc --version --verbose:
rustc --version --verbose
<version> rustc 1.58.1 (db9d1b20b 2022-01-20) binary: rustc commit-hash: db9d1b20bba1968c1ec1fc49616d4742c1725b4b commit-date: 2022-01-20 host: x86_64-pc-windows-msvc release: 1.58.1 LLVM version: 13.0.0
<backtrace>
The text was updated successfully, but these errors were encountered:
Duplicate of #93378.
Sorry, something went wrong.
Yea, I believe this is a duplicate of #93378 and should be fixed by #93394.
No branches or pull requests
I tried this code:
I expected to see this happen: Compile time error for providing an empty parenthesis in
println!("The value of x, y, z is: {x}, {}, {z}");
Instead, this happened:
The value of x, y, z is: 500, 500, 1
The value of variablex
(500
) was filled in for the empty parenthesis.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: