4 format!(); //~ ERROR requires at least a format string argument
5 format!(struct); //~ ERROR expected expression
6 format!("s", name =); //~ ERROR expected expression
10 bar, //~ ERROR positional arguments cannot follow named arguments
12 format!("s {foo}", foo = struct); //~ ERROR expected expression
13 format!("s", struct); //~ ERROR expected expression
15 // This error should come after parsing errors to ensure they are non-fatal.
16 format!(123); //~ ERROR format argument must be a string literal