rust/tests/ui/codemap_tests/bad-format-args.rs

6 lines
183 B
Rust

fn main() {
format!(); //~ ERROR requires at least a format string argument
format!("" 1); //~ ERROR expected `,`, found `1`
format!("", 1 1); //~ ERROR expected one of
}