|
1 | 1 | error: invalid format string: expected `'}'` but string was terminated
|
2 |
| - --> $DIR/format-string-error.rs:12:5 |
| 2 | + --> $DIR/format-string-error.rs:12:16 |
3 | 3 | |
|
4 | 4 | LL | println!("{");
|
5 |
| - | ^^^^^^^^^^^^^^ expected `'}'` in format string |
| 5 | + | ^ expected `'}'` in format string |
6 | 6 | |
|
7 | 7 | = note: if you intended to print `{`, you can escape it using `{{`
|
8 |
| - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) |
9 | 8 |
|
10 | 9 | error: invalid format string: unmatched `}` found
|
11 |
| - --> $DIR/format-string-error.rs:14:5 |
| 10 | + --> $DIR/format-string-error.rs:15:15 |
12 | 11 | |
|
13 | 12 | LL | println!("}");
|
14 |
| - | ^^^^^^^^^^^^^^ unmatched `}` in format string |
| 13 | + | ^ unmatched `}` in format string |
15 | 14 | |
|
16 | 15 | = note: if you intended to print `}`, you can escape it using `}}`
|
17 |
| - = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) |
18 | 16 |
|
19 | 17 | error: invalid format string: invalid argument name `_foo`
|
20 |
| - --> $DIR/format-string-error.rs:15:23 |
| 18 | + --> $DIR/format-string-error.rs:17:23 |
21 | 19 | |
|
22 | 20 | LL | let _ = format!("{_foo}", _foo = 6usize);
|
23 | 21 | | ^^^^ invalid argument name in format string
|
24 | 22 | |
|
25 | 23 | = note: argument names cannot start with an underscore
|
26 | 24 |
|
27 | 25 | error: invalid format string: invalid argument name `_`
|
28 |
| - --> $DIR/format-string-error.rs:17:23 |
| 26 | + --> $DIR/format-string-error.rs:19:23 |
29 | 27 | |
|
30 | 28 | LL | let _ = format!("{_}", _ = 6usize);
|
31 | 29 | | ^ invalid argument name in format string
|
32 | 30 | |
|
33 | 31 | = note: argument names cannot start with an underscore
|
34 | 32 |
|
35 | 33 | error: invalid format string: expected `'}'` but string was terminated
|
36 |
| - --> $DIR/format-string-error.rs:19:23 |
| 34 | + --> $DIR/format-string-error.rs:21:23 |
37 | 35 | |
|
38 | 36 | LL | let _ = format!("{");
|
39 | 37 | | ^ expected `'}'` in format string
|
40 | 38 | |
|
41 | 39 | = note: if you intended to print `{`, you can escape it using `{{`
|
42 | 40 |
|
43 | 41 | error: invalid format string: unmatched `}` found
|
44 |
| - --> $DIR/format-string-error.rs:21:22 |
| 42 | + --> $DIR/format-string-error.rs:23:22 |
45 | 43 | |
|
46 | 44 | LL | let _ = format!("}");
|
47 | 45 | | ^ unmatched `}` in format string
|
48 | 46 | |
|
49 | 47 | = note: if you intended to print `}`, you can escape it using `}}`
|
50 | 48 |
|
51 | 49 | error: invalid format string: expected `'}'`, found `'/'`
|
52 |
| - --> $DIR/format-string-error.rs:23:23 |
| 50 | + --> $DIR/format-string-error.rs:25:23 |
53 | 51 | |
|
54 | 52 | LL | let _ = format!("{/}");
|
55 | 53 | | ^ expected `}` in format string
|
|
0 commit comments