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

5 lines
149 B
Rust

fn main() {
format_args!(); //~ ERROR: requires at least a format string argument
format_args!(|| {}); //~ ERROR: must be a string literal
}