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