|
| 1 | +error: incorrect unicode escape sequence |
| 2 | + --> $DIR/format-string-error-2.rs:77:20 |
| 3 | + | |
| 4 | +LL | println!("/x7B}/u8 {", 1); |
| 5 | + | ^^- |
| 6 | + | | |
| 7 | + | help: format of unicode escape sequences uses braces: `/u{8}` |
| 8 | + |
1 | 9 | error: invalid format string: expected `'}'`, found `'a'`
|
2 | 10 | --> $DIR/format-string-error-2.rs:5:5
|
3 | 11 | |
|
@@ -139,5 +147,39 @@ error: 1 positional argument in format string, but no arguments were given
|
139 | 147 | LL | println!("/t{}");
|
140 | 148 | | ^^
|
141 | 149 |
|
142 |
| -error: aborting due to 14 previous errors |
| 150 | +error: invalid format string: expected `'}'` but string was terminated |
| 151 | + --> $DIR/format-string-error-2.rs:74:27 |
| 152 | + | |
| 153 | +LL | println!("/x7B}/u{8} {", 1); |
| 154 | + | -^ expected `'}'` in format string |
| 155 | + | | |
| 156 | + | because of this opening brace |
| 157 | + | |
| 158 | + = note: if you intended to print `{`, you can escape it using `{{` |
| 159 | + |
| 160 | +error: argument never used |
| 161 | + --> $DIR/format-string-error-2.rs:77:28 |
| 162 | + | |
| 163 | +LL | println!("/x7B}/u8 {", 1); |
| 164 | + | ------------ ^ argument never used |
| 165 | + | | |
| 166 | + | formatting specifier missing |
| 167 | + |
| 168 | +error: invalid format string: unmatched `}` found |
| 169 | + --> $DIR/format-string-error-2.rs:82:21 |
| 170 | + | |
| 171 | +LL | println!(r#"/x7B}/u{8} {"#, 1); |
| 172 | + | ^ unmatched `}` in format string |
| 173 | + | |
| 174 | + = note: if you intended to print `}`, you can escape it using `}}` |
| 175 | + |
| 176 | +error: invalid format string: unmatched `}` found |
| 177 | + --> $DIR/format-string-error-2.rs:85:21 |
| 178 | + | |
| 179 | +LL | println!(r#"/x7B}/u8 {"#, 1); |
| 180 | + | ^ unmatched `}` in format string |
| 181 | + | |
| 182 | + = note: if you intended to print `}`, you can escape it using `}}` |
| 183 | + |
| 184 | +error: aborting due to 19 previous errors |
143 | 185 |
|
0 commit comments