rust/tests/ui/fmt/ifmt-bad-format-args.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
149 B
Rust
Raw Normal View History

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