]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/issue-81006.rs
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / 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 }