2018-12-27 18:40:06 +00:00
|
|
|
error: incorrect unicode escape sequence
|
2019-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:78:20
|
2018-12-27 18:40:06 +00:00
|
|
|
|
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | println!("\x7B}\u8 {", 1);
|
2018-12-27 19:21:47 +00:00
|
|
|
| ^^-
|
2019-04-25 08:48:25 +00:00
|
|
|
| |
|
|
|
|
| help: format of unicode escape sequences uses braces: `\u{8}`
|
2018-12-27 18:40:06 +00:00
|
|
|
|
2018-12-21 06:33:16 +00:00
|
|
|
error: invalid format string: expected `'}'`, found `'a'`
|
2019-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:6:5
|
2018-12-21 06:33:16 +00:00
|
|
|
|
|
|
|
|
LL | format!("{
|
|
|
|
| - because of this opening brace
|
|
|
|
LL | a");
|
|
|
|
| ^ expected `}` in format string
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'b'`
|
2019-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:10: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
|
|
|
|
LL |
|
|
|
|
LL | b");
|
|
|
|
| ^ expected `}` in format string
|
|
|
|
|
|
|
|
|
= 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-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:12:18
|
2018-12-21 06:33:16 +00:00
|
|
|
|
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | format!(r#"{ \
|
2018-12-21 06:33:16 +00:00
|
|
|
| - ^ expected `}` in format string
|
|
|
|
| |
|
|
|
|
| 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-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:16:18
|
2018-12-21 06:33:16 +00:00
|
|
|
|
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | format!(r#"{ \n
|
2018-12-21 06:33:16 +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: expected `'}'`, found `'e'`
|
2019-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:22: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");
|
|
|
|
| ^ expected `}` in format string
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'a'`
|
2019-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:26:5
|
2018-12-21 06:33:16 +00:00
|
|
|
|
|
|
|
|
LL | {
|
|
|
|
| - because of this opening brace
|
|
|
|
LL | a");
|
|
|
|
| ^ expected `}` in format string
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'a'`
|
2019-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:30:5
|
2018-12-21 06:33:16 +00:00
|
|
|
|
|
|
|
|
LL | {
|
|
|
|
| - because of this opening brace
|
|
|
|
LL | a
|
|
|
|
| ^ expected `}` in format string
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'b'`
|
2019-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:36: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");
|
|
|
|
| ^ expected `}` in format string
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'b'`
|
2019-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:41: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 \
|
2018-12-21 06:33:16 +00:00
|
|
|
| ^ expected `}` in format string
|
|
|
|
|
|
|
|
|
= 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-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:46:8
|
2018-12-21 06:33:16 +00:00
|
|
|
|
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | raw { \
|
2018-12-21 06:33:16 +00:00
|
|
|
| - ^ expected `}` in format string
|
|
|
|
| |
|
|
|
|
| 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-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:51:8
|
2018-12-21 06:33:16 +00:00
|
|
|
|
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | raw { \n
|
2018-12-21 06:33:16 +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: expected `'}'`, found `'e'`
|
2019-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:58: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");
|
|
|
|
| ^ expected `}` in format string
|
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
|
|
|
|
|
|
|
error: invalid format string: expected `'}'`, found `'a'`
|
2019-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:68:5
|
2018-12-21 06:33:16 +00:00
|
|
|
|
|
|
|
|
LL | {
|
|
|
|
| - because of this opening brace
|
|
|
|
LL | asdf}
|
|
|
|
| ^ expected `}` in format string
|
|
|
|
|
|
|
|
|
= 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-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:71: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-04-25 08:48:25 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:75: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-02 17:56:07 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:82: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-02 17:56:07 +00:00
|
|
|
--> $DIR/format-string-error-2.rs:85: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
|
|
|
|