summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-81006.rs
blob: 602eb59742879c90830ee3f4b59d9e0ec9270da9 (plain)
1
2
3
4
5
6
7
8
9
10
// check-fail

// First format below would cause a panic, second would generate error with incorrect span

fn main() {
    let _ = format!("→{}→\n");
    //~^ ERROR 1 positional argument in format string, but no arguments were given
    let _ = format!("→{} \n");
    //~^ ERROR 1 positional argument in format string, but no arguments were given
}