]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/fmt/format-concat-span.rs
1 // If the format string is another macro invocation, rustc would previously
2 // compute nonsensical spans, such as:
4 // error: invalid format string: unmatched `}` found
7 // 2 | format!(concat!("abc}"));
8 // | ^ unmatched `}` in format string
10 // This test checks that this behavior has been fixed.
13 format
!(concat
!("abc}"));
14 //~^ ERROR: invalid format string: unmatched `}` found