2 format!("{} {foo} {} {bar} {}", 1, 2, 3);
3 //~^ ERROR: cannot find value `foo` in this scope
4 //~^^ ERROR: cannot find value `bar` in this scope
6 format!("{foo}"); //~ ERROR: cannot find value `foo` in this scope
8 format!("{valuea} {valueb}", valuea=5, valuec=7);
9 //~^ ERROR cannot find value `valueb` in this scope
10 //~^^ ERROR named argument never used
17 //~^^^ ERROR: cannot find value `foo` in this scope
19 panic!("{foo} {bar}", bar=1); //~ ERROR: cannot find value `foo` in this scope