]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-81006.rs
Auto merge of #106952 - petrochenkov:docglob, r=notriddle,GuillaumeGomez
[rust.git] / tests / ui / macros / issue-81006.rs
1 // check-fail
2
3 // First format below would cause a panic, second would generate error with incorrect span
4
5 fn main() {
6     let _ = format!("→{}→\n");
7     //~^ ERROR 1 positional argument in format string, but no arguments were given
8     let _ = format!("→{} \n");
9     //~^ ERROR 1 positional argument in format string, but no arguments were given
10 }