rustc/tests/ui/macros/issue-81006.rs
2024-06-21 09:39:33 +02:00

11 lines
356 B
Rust

//@ 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
}