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