fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
717 B23 linesraw
1error: invalid format string: expected `'}'` but string was terminated
2  --> $DIR/issue-51848.rs:6:20
3   |
4LL |         println!("{");
5   |                   -^ expected `'}'` in format string
6   |                   |
7   |                   because of this opening brace
8...
9LL |     macro_with_error!();
10   |     -------------------- in this macro invocation
11   |
12   = note: if you intended to print `{`, you can escape it using `{{`
13
14error: invalid format string: unmatched `}` found
15  --> $DIR/issue-51848.rs:18:15
16   |
17LL |     println!("}");
18   |               ^ unmatched `}` in format string
19   |
20   = note: if you intended to print `}`, you can escape it using `}}`
21
22error: aborting due to 2 previous errors
23