Closed
Description
I tried this code:
let x = (1, 2, 3);
println!("{x.0}",);
I expected to see this happen: printing of the value 1.
Instead, this happened: it gave the following error:
invalid format string: expected
'}'
, found'.'
if you intended to print{
, you can escape it using{{
rustcClick for full compiler diagnostic
Meta
rustc --version --verbose
:
1.76.0