]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-81006.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[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 }