mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-14 21:40:58 +00:00
11 lines
340 B
Plaintext
11 lines
340 B
Plaintext
// Checks that there is a suggestion for simple tuple index access expression (used where an
|
|
// identifier is expected in a format arg) to use positional arg instead.
|
|
// Issue: <https://github.com/rust-lang/rust/issues/122535>.
|
|
//@ run-rustfix
|
|
|
|
fn main() {
|
|
let x = (1,);
|
|
println!("{0}", x.0);
|
|
//~^ ERROR invalid format string
|
|
}
|