summaryrefslogtreecommitdiffstats
path: root/src/test/ui/fmt/ifmt-bad-format-args.rs
blob: ba7301561bd0d180a298c7ae40e80dc9f23262b0 (plain)
1
2
3
4
fn main() {
    format_args!(); //~ ERROR: requires at least a format string argument
    format_args!(|| {}); //~ ERROR: must be a string literal
}