rust/tests/ui/codemap_tests/bad-format-args.rs
2023-01-11 09:32:08 +00:00

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
}