blob: bd4db9480674c9438b060fc4bb747e0f755ab0d9 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// 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
}
|