summaryrefslogtreecommitdiffstats
path: root/tests/ui/fmt/issue-103826.rs
blob: a11ec37a06dbb7c3572688e9de5830f42259ddf5 (plain)
1
2
3
4
5
6
7
8
fn main() {
    format!("{\x7D");
    //~^ ERROR 1 positional argument in format string, but no arguments were given
    format!("\x7B\x7D");
    //~^ ERROR 1 positional argument in format string, but no arguments were given
    format!("{\x7D {\x7D");
    //~^ ERROR 2 positional arguments in format string, but no arguments were given
}