11error: incorrect unicode escape sequence
2- --> $DIR/format-string-error-2.rs:78 :20
2+ --> $DIR/format-string-error-2.rs:77 :20
33 |
44LL | println!("\x7B}\u8 {", 1);
55 | ^^-
66 | |
77 | help: format of unicode escape sequences uses braces: `\u{8}`
88
99error: invalid format string: expected `'}'`, found `'a'`
10- --> $DIR/format-string-error-2.rs:6 :5
10+ --> $DIR/format-string-error-2.rs:5 :5
1111 |
1212LL | format!("{
1313 | - because of this opening brace
@@ -17,7 +17,7 @@ LL | a");
1717 = note: if you intended to print `{`, you can escape it using `{{`
1818
1919error: invalid format string: expected `'}'`, found `'b'`
20- --> $DIR/format-string-error-2.rs:10 :5
20+ --> $DIR/format-string-error-2.rs:9 :5
2121 |
2222LL | format!("{ \
2323 | - because of this opening brace
@@ -28,7 +28,7 @@ LL | b");
2828 = note: if you intended to print `{`, you can escape it using `{{`
2929
3030error: invalid format string: expected `'}'`, found `'\'`
31- --> $DIR/format-string-error-2.rs:12 :18
31+ --> $DIR/format-string-error-2.rs:11 :18
3232 |
3333LL | format!(r#"{ \
3434 | - ^ expected `}` in format string
@@ -38,7 +38,7 @@ LL | format!(r#"{ \
3838 = note: if you intended to print `{`, you can escape it using `{{`
3939
4040error: invalid format string: expected `'}'`, found `'\'`
41- --> $DIR/format-string-error-2.rs:16 :18
41+ --> $DIR/format-string-error-2.rs:15 :18
4242 |
4343LL | format!(r#"{ \n
4444 | - ^ expected `}` in format string
@@ -48,7 +48,7 @@ LL | format!(r#"{ \n
4848 = note: if you intended to print `{`, you can escape it using `{{`
4949
5050error: invalid format string: expected `'}'`, found `'e'`
51- --> $DIR/format-string-error-2.rs:22 :5
51+ --> $DIR/format-string-error-2.rs:21 :5
5252 |
5353LL | format!("{ \n
5454 | - because of this opening brace
@@ -59,7 +59,7 @@ LL | e");
5959 = note: if you intended to print `{`, you can escape it using `{{`
6060
6161error: invalid format string: expected `'}'`, found `'a'`
62- --> $DIR/format-string-error-2.rs:26 :5
62+ --> $DIR/format-string-error-2.rs:25 :5
6363 |
6464LL | {
6565 | - because of this opening brace
@@ -69,7 +69,7 @@ LL | a");
6969 = note: if you intended to print `{`, you can escape it using `{{`
7070
7171error: invalid format string: expected `'}'`, found `'a'`
72- --> $DIR/format-string-error-2.rs:30 :5
72+ --> $DIR/format-string-error-2.rs:29 :5
7373 |
7474LL | {
7575 | - because of this opening brace
7979 = note: if you intended to print `{`, you can escape it using `{{`
8080
8181error: invalid format string: expected `'}'`, found `'b'`
82- --> $DIR/format-string-error-2.rs:36 :5
82+ --> $DIR/format-string-error-2.rs:35 :5
8383 |
8484LL | { \
8585 | - because of this opening brace
@@ -90,7 +90,7 @@ LL | b");
9090 = note: if you intended to print `{`, you can escape it using `{{`
9191
9292error: invalid format string: expected `'}'`, found `'b'`
93- --> $DIR/format-string-error-2.rs:41 :5
93+ --> $DIR/format-string-error-2.rs:40 :5
9494 |
9595LL | { \
9696 | - because of this opening brace
@@ -101,7 +101,7 @@ LL | b \
101101 = note: if you intended to print `{`, you can escape it using `{{`
102102
103103error: invalid format string: expected `'}'`, found `'\'`
104- --> $DIR/format-string-error-2.rs:46 :8
104+ --> $DIR/format-string-error-2.rs:45 :8
105105 |
106106LL | raw { \
107107 | - ^ expected `}` in format string
@@ -111,7 +111,7 @@ LL | raw { \
111111 = note: if you intended to print `{`, you can escape it using `{{`
112112
113113error: invalid format string: expected `'}'`, found `'\'`
114- --> $DIR/format-string-error-2.rs:51 :8
114+ --> $DIR/format-string-error-2.rs:50 :8
115115 |
116116LL | raw { \n
117117 | - ^ expected `}` in format string
@@ -121,7 +121,7 @@ LL | raw { \n
121121 = note: if you intended to print `{`, you can escape it using `{{`
122122
123123error: invalid format string: expected `'}'`, found `'e'`
124- --> $DIR/format-string-error-2.rs:58 :5
124+ --> $DIR/format-string-error-2.rs:57 :5
125125 |
126126LL | { \n
127127 | - because of this opening brace
@@ -132,7 +132,7 @@ LL | e");
132132 = note: if you intended to print `{`, you can escape it using `{{`
133133
134134error: invalid format string: expected `'}'`, found `'a'`
135- --> $DIR/format-string-error-2.rs:68 :5
135+ --> $DIR/format-string-error-2.rs:67 :5
136136 |
137137LL | {
138138 | - because of this opening brace
@@ -142,13 +142,13 @@ LL | asdf}
142142 = note: if you intended to print `{`, you can escape it using `{{`
143143
144144error: 1 positional argument in format string, but no arguments were given
145- --> $DIR/format-string-error-2.rs:71 :17
145+ --> $DIR/format-string-error-2.rs:70 :17
146146 |
147147LL | println!("\t{}");
148148 | ^^
149149
150150error: invalid format string: expected `'}'` but string was terminated
151- --> $DIR/format-string-error-2.rs:75 :27
151+ --> $DIR/format-string-error-2.rs:74 :27
152152 |
153153LL | println!("\x7B}\u{8} {", 1);
154154 | -^ expected `'}'` in format string
@@ -158,15 +158,15 @@ LL | println!("\x7B}\u{8} {", 1);
158158 = note: if you intended to print `{`, you can escape it using `{{`
159159
160160error: invalid format string: unmatched `}` found
161- --> $DIR/format-string-error-2.rs:82 :21
161+ --> $DIR/format-string-error-2.rs:81 :21
162162 |
163163LL | println!(r#"\x7B}\u{8} {"#, 1);
164164 | ^ unmatched `}` in format string
165165 |
166166 = note: if you intended to print `}`, you can escape it using `}}`
167167
168168error: invalid format string: unmatched `}` found
169- --> $DIR/format-string-error-2.rs:85 :21
169+ --> $DIR/format-string-error-2.rs:84 :21
170170 |
171171LL | println!(r#"\x7B}\u8 {"#, 1);
172172 | ^ unmatched `}` in format string
0 commit comments