2018-12-27 12:40:06 -06:00
|
|
|
error: incorrect unicode escape sequence
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:77:20
|
2018-12-27 12:40:06 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | println!("\x7B}\u8 {", 1);
|
2020-10-05 13:19:08 -05:00
|
|
|
| ^^^ help: format of unicode escape sequences uses braces: `\u{8}`
|
2018-12-27 12:40:06 -06:00
|
|
|
|
2018-12-21 00:33:16 -06:00
|
|
|
error: invalid format string: expected `'}'`, found `'a'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:5:5
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
LL | format!("{
|
|
|
|
| - because of this opening brace
|
|
|
|
LL | a");
|
2023-07-16 19:32:13 -05:00
|
|
|
| ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'b'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:9:5
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | format!("{ \
|
2018-12-21 00:33:16 -06:00
|
|
|
| - because of this opening brace
|
2021-07-31 16:09:19 -05:00
|
|
|
LL | \
|
2018-12-21 00:33:16 -06:00
|
|
|
LL | b");
|
2023-07-16 19:32:13 -05:00
|
|
|
| ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
error: invalid format string: expected `'}'`, found `'\'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:11:18
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | format!(r#"{ \
|
2023-07-16 19:32:13 -05:00
|
|
|
| - ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
| |
|
|
|
|
| because of this opening brace
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
error: invalid format string: expected `'}'`, found `'\'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:15:18
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | format!(r#"{ \n
|
2023-07-16 19:32:13 -05:00
|
|
|
| - ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
| |
|
|
|
|
| because of this opening brace
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'e'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:21:5
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | format!("{ \n
|
2018-12-21 00:33:16 -06:00
|
|
|
| - because of this opening brace
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | \n
|
2018-12-21 00:33:16 -06:00
|
|
|
LL | e");
|
2023-07-16 19:32:13 -05:00
|
|
|
| ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'a'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:25:5
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
LL | {
|
|
|
|
| - because of this opening brace
|
|
|
|
LL | a");
|
2023-07-16 19:32:13 -05:00
|
|
|
| ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'a'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:29:5
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
LL | {
|
|
|
|
| - because of this opening brace
|
|
|
|
LL | a
|
2023-07-16 19:32:13 -05:00
|
|
|
| ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'b'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:35:5
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | { \
|
2018-12-21 00:33:16 -06:00
|
|
|
| - because of this opening brace
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | \
|
2018-12-21 00:33:16 -06:00
|
|
|
LL | b");
|
2023-07-16 19:32:13 -05:00
|
|
|
| ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'b'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:40:5
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | { \
|
2018-12-21 00:33:16 -06:00
|
|
|
| - because of this opening brace
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | \
|
|
|
|
LL | b \
|
2023-07-16 19:32:13 -05:00
|
|
|
| ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
error: invalid format string: expected `'}'`, found `'\'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:45:8
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | raw { \
|
2023-07-16 19:32:13 -05:00
|
|
|
| - ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
| |
|
|
|
|
| because of this opening brace
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
error: invalid format string: expected `'}'`, found `'\'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:50:8
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | raw { \n
|
2023-07-16 19:32:13 -05:00
|
|
|
| - ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
| |
|
|
|
|
| because of this opening brace
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'e'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:57:5
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | { \n
|
2018-12-21 00:33:16 -06:00
|
|
|
| - because of this opening brace
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | \n
|
2018-12-21 00:33:16 -06:00
|
|
|
LL | e");
|
2023-07-16 19:32:13 -05:00
|
|
|
| ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'a'`
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:67:5
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
LL | {
|
|
|
|
| - because of this opening brace
|
|
|
|
LL | asdf}
|
2023-07-16 19:32:13 -05:00
|
|
|
| ^ expected `'}'` in format string
|
2018-12-21 00:33:16 -06:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
2018-12-26 22:05:56 -06:00
|
|
|
error: 1 positional argument in format string, but no arguments were given
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:70:17
|
2018-12-26 22:05:56 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | println!("\t{}");
|
2018-12-26 22:05:56 -06:00
|
|
|
| ^^
|
|
|
|
|
2018-12-27 12:40:06 -06:00
|
|
|
error: invalid format string: expected `'}'` but string was terminated
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:74:27
|
2018-12-27 12:40:06 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | println!("\x7B}\u{8} {", 1);
|
2018-12-27 12:40:06 -06:00
|
|
|
| -^ expected `'}'` in format string
|
|
|
|
| |
|
|
|
|
| because of this opening brace
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: unmatched `}` found
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:81:21
|
2018-12-27 12:40:06 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | println!(r#"\x7B}\u{8} {"#, 1);
|
2018-12-27 12:40:06 -06:00
|
|
|
| ^ unmatched `}` in format string
|
|
|
|
|
|
|
|
|
= note: if you intended to print `}`, you can escape it using `}}`
|
|
|
|
|
|
|
|
error: invalid format string: unmatched `}` found
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/format-string-error-2.rs:84:21
|
2018-12-27 12:40:06 -06:00
|
|
|
|
|
2019-03-12 23:47:36 -05:00
|
|
|
LL | println!(r#"\x7B}\u8 {"#, 1);
|
2018-12-27 12:40:06 -06:00
|
|
|
| ^ unmatched `}` in format string
|
|
|
|
|
|
|
|
|
= note: if you intended to print `}`, you can escape it using `}}`
|
|
|
|
|
2019-05-02 12:56:07 -05:00
|
|
|
error: aborting due to 18 previous errors
|
2018-12-21 00:33:16 -06:00
|
|
|
|