1 error: invalid format string: expected `'}'` but string was terminated
2 --> $DIR/issue-51848.rs:16:20
4 LL | println!("{"); //~ ERROR invalid
5 | ^ expected `'}'` in format string
7 LL | macro_with_error!();
8 | -------------------- in this macro invocation
10 = note: if you intended to print `{`, you can escape it using `{{`
12 error: invalid format string: unmatched `}` found
13 --> $DIR/issue-51848.rs:28:15
15 LL | println!("}"); //~ ERROR invalid
16 | ^ unmatched `}` in format string
18 = note: if you intended to print `}`, you can escape it using `}}`
20 error: aborting due to 2 previous errors