about summary refs log tree commit diff
path: root/tests/ui/fmt/issue-91556.rs
blob: fcf8909859c6070622ce74b7a16f608488c9bf35 (plain)
1
2
3
4
5
6
7
8
fn main() {
  let _ = format!(concat!("{0}π–³π–Ύπ—Œπ—{"), i);
  //~^ ERROR: invalid format string: expected `}` but string was terminated
  //~| NOTE: if you intended to print `{`, you can escape it using `{{`
  //~| NOTE: in this expansion of concat!
  //~| NOTE: in this expansion of concat!
  //~| NOTE: expected `}` in format string
}