summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/issue-105225-named-args.rs
blob: 38e817765769f0f7d7cf6df4c1d94cc4dc25a529 (plain)
1
2
3
4
5
6
7
8
9
10
fn main() {
    let x = "x";
    let y = "y";

    println!("{x}", x, x = y);
    //~^ ERROR: redundant argument

    println!("{x}", x = y, x = y);
    //~^ ERROR: duplicate argument named `x`
}