1 error: invalid format string: expected `'}'` but string was terminated
2 --> $DIR/issue-51848.rs:6:20
5 | -^ expected `'}'` in format string
7 | because of this opening brace
9 LL | macro_with_error!();
10 | ------------------- in this macro invocation
12 = note: if you intended to print `{`, you can escape it using `{{`
13 = note: this error originates in the macro `macro_with_error` (in Nightly builds, run with -Z macro-backtrace for more info)
15 error: invalid format string: unmatched `}` found
16 --> $DIR/issue-51848.rs:18:15
19 | ^ unmatched `}` in format string
21 = note: if you intended to print `}`, you can escape it using `}}`
23 error: aborting due to 2 previous errors