rust/tests/ui/macros/issue-81006.rs

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

11 lines
355 B
Rust
Raw Normal View History

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