|
1 |
| -error: invalid format string: invalid format string for argument `foo` |
2 |
| - --> $DIR/invalid-parse-format-issue-139104.rs:2:16 |
| 1 | +error: invalid format string: expected `}`, found `.` |
| 2 | + --> $DIR/invalid-parse-format-issue-139104.rs:2:22 |
3 | 3 | |
|
4 | 4 | LL | println!("{foo:_1.4}", foo = 3.14);
|
5 |
| - | ^^^ invalid format specifier for this argument in format string |
| 5 | + | - ^ expected `}` in format string |
| 6 | + | | |
| 7 | + | because of this opening brace |
| 8 | + | |
| 9 | + = note: if you intended to print `{`, you can escape it using `{{` |
6 | 10 |
|
7 |
| -error: invalid format string: invalid format string for argument `foo` |
8 |
| - --> $DIR/invalid-parse-format-issue-139104.rs:3:16 |
| 11 | +error: invalid format string: expected `}`, found `.` |
| 12 | + --> $DIR/invalid-parse-format-issue-139104.rs:3:20 |
9 | 13 | |
|
10 |
| -LL | println!("{foo:1.4_1.4}", foo = 3.14); |
11 |
| - | ^^^ invalid format specifier for this argument in format string |
| 14 | +LL | println!("{0:_1.4}", 1.11); |
| 15 | + | - ^ expected `}` in format string |
| 16 | + | | |
| 17 | + | because of this opening brace |
| 18 | + | |
| 19 | + = note: if you intended to print `{`, you can escape it using `{{` |
12 | 20 |
|
13 |
| -error: invalid format string: invalid format string for argument at index `0` |
| 21 | +error: invalid format string: expected `}`, found `.` |
14 | 22 | --> $DIR/invalid-parse-format-issue-139104.rs:4:19
|
15 | 23 | |
|
16 |
| -LL | println!("xxx{0:_1.4}", 1.11); |
17 |
| - | ^ invalid format specifier for this argument in format string |
| 24 | +LL | println!("{:_1.4}", 3.14); |
| 25 | + | - ^ expected `}` in format string |
| 26 | + | | |
| 27 | + | because of this opening brace |
| 28 | + | |
| 29 | + = note: if you intended to print `{`, you can escape it using `{{` |
18 | 30 |
|
19 |
| -error: invalid format string: invalid format string for argument `foo` |
20 |
| - --> $DIR/invalid-parse-format-issue-139104.rs:5:16 |
| 31 | +error: invalid format string: expected `}`, found `.` |
| 32 | + --> $DIR/invalid-parse-format-issue-139104.rs:6:22 |
21 | 33 | |
|
22 | 34 | LL | println!("{foo:_1.4", foo = 3.14);
|
23 |
| - | ^^^ invalid format specifier for this argument in format string |
| 35 | + | - ^ expected `}` in format string |
| 36 | + | | |
| 37 | + | because of this opening brace |
| 38 | + | |
| 39 | + = note: if you intended to print `{`, you can escape it using `{{` |
| 40 | + |
| 41 | +error: invalid format string: expected `}`, found `.` |
| 42 | + --> $DIR/invalid-parse-format-issue-139104.rs:7:20 |
| 43 | + | |
| 44 | +LL | println!("{0:_1.4", 1.11); |
| 45 | + | - ^ expected `}` in format string |
| 46 | + | | |
| 47 | + | because of this opening brace |
| 48 | + | |
| 49 | + = note: if you intended to print `{`, you can escape it using `{{` |
24 | 50 |
|
25 |
| -error: invalid format string: invalid format string for argument at index `0` |
26 |
| - --> $DIR/invalid-parse-format-issue-139104.rs:6:19 |
| 51 | +error: invalid format string: expected `}`, found `.` |
| 52 | + --> $DIR/invalid-parse-format-issue-139104.rs:8:19 |
| 53 | + | |
| 54 | +LL | println!("{:_1.4", 3.14); |
| 55 | + | - ^ expected `}` in format string |
| 56 | + | | |
| 57 | + | because of this opening brace |
27 | 58 | |
|
28 |
| -LL | println!("xxx{0:_1.4", 1.11); |
29 |
| - | ^ invalid format specifier for this argument in format string |
| 59 | + = note: if you intended to print `{`, you can escape it using `{{` |
30 | 60 |
|
31 | 61 | error: invalid format string: expected `}`, found `0`
|
32 |
| - --> $DIR/invalid-parse-format-issue-139104.rs:7:21 |
| 62 | + --> $DIR/invalid-parse-format-issue-139104.rs:10:18 |
| 63 | + | |
| 64 | +LL | println!("{ 0", 1.11); |
| 65 | + | - ^ expected `}` in format string |
| 66 | + | | |
| 67 | + | because of this opening brace |
| 68 | + | |
| 69 | + = note: if you intended to print `{`, you can escape it using `{{` |
| 70 | + |
| 71 | +error: invalid format string: expected `}`, found `.` |
| 72 | + --> $DIR/invalid-parse-format-issue-139104.rs:11:25 |
| 73 | + | |
| 74 | +LL | println!("{foo:1.4_1.4}", foo = 3.14); |
| 75 | + | - ^ expected `}` in format string |
| 76 | + | | |
| 77 | + | because of this opening brace |
| 78 | + | |
| 79 | + = note: if you intended to print `{`, you can escape it using `{{` |
| 80 | + |
| 81 | +error: invalid format string: expected `}`, found `.` |
| 82 | + --> $DIR/invalid-parse-format-issue-139104.rs:12:23 |
33 | 83 | |
|
34 |
| -LL | println!("xxx{ 0", 1.11); |
35 |
| - | - ^ expected `}` in format string |
36 |
| - | | |
37 |
| - | because of this opening brace |
| 84 | +LL | println!("{0:1.4_1.4}", 3.14); |
| 85 | + | - ^ expected `}` in format string |
| 86 | + | | |
| 87 | + | because of this opening brace |
38 | 88 | |
|
39 | 89 | = note: if you intended to print `{`, you can escape it using `{{`
|
40 | 90 |
|
41 |
| -error: aborting due to 6 previous errors |
| 91 | +error: aborting due to 9 previous errors |
42 | 92 |
|
0 commit comments