blob: 4555ce7c8b70560b813df7c78f05031eff1a1596 [file]
error: invalid format string: tuple index access isn't supported
--> $DIR/format-args-non-identifier-diagnostics.rs:9:16
|
LL | println!("{x.0}");
| ^^^ not supported in format string
|
= note: consider moving this expression to a local variable and then using the local here instead
help: consider using a positional formatting argument instead
|
LL - println!("{x.0}");
LL + println!("{0}", x.0);
|
error: aborting due to 1 previous error