1
Fork 0
rust/src/test/ui/fmt/format-string-error.stderr

97 lines
3 KiB
Text
Raw Normal View History

error: invalid format string: expected `'}'` but string was terminated
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:4:16
|
2018-02-23 03:42:32 +03:00
LL | println!("{");
| ^ expected `'}'` in format string
|
= note: if you intended to print `{`, you can escape it using `{{`
error: invalid format string: unmatched `}` found
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:7:15
|
2018-02-23 03:42:32 +03:00
LL | println!("}");
| ^ unmatched `}` in format string
|
= note: if you intended to print `}`, you can escape it using `}}`
error: invalid format string: invalid argument name `_foo`
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:9:23
|
LL | let _ = format!("{_foo}", _foo = 6usize);
| ^^^^ invalid argument name in format string
|
= note: argument names cannot start with an underscore
error: invalid format string: invalid argument name `_`
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:11:23
|
LL | let _ = format!("{_}", _ = 6usize);
| ^ invalid argument name in format string
|
= note: argument names cannot start with an underscore
error: invalid format string: expected `'}'` but string was terminated
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:13:23
|
LL | let _ = format!("{");
| ^ expected `'}'` in format string
|
= note: if you intended to print `{`, you can escape it using `{{`
error: invalid format string: unmatched `}` found
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:15:22
|
LL | let _ = format!("}");
| ^ unmatched `}` in format string
|
= note: if you intended to print `}`, you can escape it using `}}`
error: invalid format string: expected `'}'`, found `'/'`
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:17:23
|
LL | let _ = format!("{/}");
| ^ expected `}` in format string
error: invalid format string: expected `'}'` but string was terminated
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:19:29
|
LL | let _ = format!("/n/n/n{/n/n/n");
| ^ expected `'}'` in format string
|
= note: if you intended to print `{`, you can escape it using `{{`
error: invalid format string: expected `'}'` but string was terminated
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:25:3
|
LL | {"###);
| ^ expected `'}'` in format string
|
= note: if you intended to print `{`, you can escape it using `{{`
error: invalid format string: expected `'}'` but string was terminated
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:32:1
|
LL |
| ^ expected `'}'` in format string
|
= note: if you intended to print `{`, you can escape it using `{{`
error: invalid format string: unmatched `}` found
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:39:2
|
LL | }
| ^ unmatched `}` in format string
|
= note: if you intended to print `}`, you can escape it using `}}`
error: invalid format string: unmatched `}` found
2018-12-25 08:56:47 -07:00
--> $DIR/format-string-error.rs:47:9
|
LL | }
| ^ unmatched `}` in format string
|
= note: if you intended to print `}`, you can escape it using `}}`
error: aborting due to 12 previous errors