1 error: invalid format string: expected `'}'` but string was terminated
2 --> $DIR/format-string-error.rs:4:16
5 | -^ expected `'}'` in format string
7 | because of this opening brace
9 = note: if you intended to print `{`, you can escape it using `{{`
11 error: invalid format string: unmatched `}` found
12 --> $DIR/format-string-error.rs:7:15
15 | ^ unmatched `}` in format string
17 = note: if you intended to print `}`, you can escape it using `}}`
19 error: invalid format string: invalid argument name `_`
20 --> $DIR/format-string-error.rs:9:23
22 LL | let _ = format!("{_}", _ = 6usize);
23 | ^ invalid argument name in format string
25 = note: argument name cannot be a single underscore
27 error: invalid format string: invalid argument name `_`
28 --> $DIR/format-string-error.rs:11:25
30 LL | let _ = format!("{a:_}", a = "", _ = 0);
31 | ^ invalid argument name in format string
33 = note: argument name cannot be a single underscore
35 error: invalid format string: invalid argument name `_`
36 --> $DIR/format-string-error.rs:13:26
38 LL | let _ = format!("{a:._$}", a = "", _ = 0);
39 | ^ invalid argument name in format string
41 = note: argument name cannot be a single underscore
43 error: invalid format string: expected `'}'` but string was terminated
44 --> $DIR/format-string-error.rs:15:23
46 LL | let _ = format!("{");
47 | -^ expected `'}'` in format string
49 | because of this opening brace
51 = note: if you intended to print `{`, you can escape it using `{{`
53 error: invalid format string: unmatched `}` found
54 --> $DIR/format-string-error.rs:17:22
56 LL | let _ = format!("}");
57 | ^ unmatched `}` in format string
59 = note: if you intended to print `}`, you can escape it using `}}`
61 error: invalid format string: expected `'}'`, found `'\'`
62 --> $DIR/format-string-error.rs:19:23
64 LL | let _ = format!("{\}");
65 | -^ expected `}` in format string
67 | because of this opening brace
69 = note: if you intended to print `{`, you can escape it using `{{`
71 error: invalid format string: expected `'}'` but string was terminated
72 --> $DIR/format-string-error.rs:21:35
74 LL | let _ = format!("\n\n\n{\n\n\n");
75 | - ^ expected `'}'` in format string
77 | because of this opening brace
79 = note: if you intended to print `{`, you can escape it using `{{`
81 error: invalid format string: expected `'}'` but string was terminated
82 --> $DIR/format-string-error.rs:27:3
85 | -^ expected `'}'` in format string
87 | because of this opening brace
89 = note: if you intended to print `{`, you can escape it using `{{`
91 error: invalid format string: expected `'}'` but string was terminated
92 --> $DIR/format-string-error.rs:35:1
95 | - because of this opening brace
98 | ^ expected `'}'` in format string
100 = note: if you intended to print `{`, you can escape it using `{{`
102 error: invalid format string: unmatched `}` found
103 --> $DIR/format-string-error.rs:41:2
106 | ^ unmatched `}` in format string
108 = note: if you intended to print `}`, you can escape it using `}}`
110 error: invalid format string: unmatched `}` found
111 --> $DIR/format-string-error.rs:49:9
114 | ^ unmatched `}` in format string
116 = note: if you intended to print `}`, you can escape it using `}}`
118 error: 3 positional arguments in format string, but there are 2 arguments
119 --> $DIR/format-string-error.rs:53:15
121 LL | println!("{} {} {}", 1, 2);
124 error: aborting due to 14 previous errors