|
| 1 | +error: invalid format string: expected `}`, found `.` |
| 2 | + --> $DIR/invalid-parse-format-issue-139104.rs:2:22 |
| 3 | + | |
| 4 | +LL | println!("{foo:_1.4}", foo = 3.14); |
| 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 `{{` |
| 10 | + |
| 11 | +error: invalid format string: expected `}`, found `.` |
| 12 | + --> $DIR/invalid-parse-format-issue-139104.rs:3:20 |
| 13 | + | |
| 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 `{{` |
| 20 | + |
| 21 | +error: invalid format string: expected `}`, found `.` |
| 22 | + --> $DIR/invalid-parse-format-issue-139104.rs:4:19 |
| 23 | + | |
| 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 `{{` |
| 30 | + |
| 31 | +error: invalid format string: expected `}`, found `.` |
| 32 | + --> $DIR/invalid-parse-format-issue-139104.rs:6:22 |
| 33 | + | |
| 34 | +LL | println!("{foo:_1.4", foo = 3.14); |
| 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 `{{` |
| 50 | + |
| 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 |
| 58 | + | |
| 59 | + = note: if you intended to print `{`, you can escape it using `{{` |
| 60 | + |
| 61 | +error: invalid format string: expected `}`, found `0` |
| 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 |
| 83 | + | |
| 84 | +LL | println!("{0:1.4_1.4}", 3.14); |
| 85 | + | - ^ expected `}` in format string |
| 86 | + | | |
| 87 | + | because of this opening brace |
| 88 | + | |
| 89 | + = note: if you intended to print `{`, you can escape it using `{{` |
| 90 | + |
| 91 | +error: aborting due to 9 previous errors |
| 92 | + |
0 commit comments