rust/tests/ui/fmt/format-expanded-string.stderr
Esteban Küber f0b8e13b59 Do not suggest using -Zmacro-backtrace for builtin macros
For macros that are implemented on the compiler, we do *not* mention the `-Zmacro-backtrace` flag. This includes `derive`s and standard macros.
2025-03-14 19:50:03 +00:00

19 lines
605 B
Plaintext

error: invalid format string: unmatched `}` found
--> $DIR/format-expanded-string.rs:19:13
|
LL | format!(concat!("abc}"));
| ^^^^^^^^^^^^^^^ unmatched `}` in format string
|
= note: if you intended to print `}`, you can escape it using `}}`
error: invalid format string: unmatched `}` found
--> $DIR/format-expanded-string.rs:22:34
|
LL | format!(err_with_input_span!(""));
| ^^ unmatched `}` in format string
|
= note: if you intended to print `}`, you can escape it using `}}`
error: aborting due to 2 previous errors