@@ -9,138 +9,138 @@ help: format of unicode escape sequences uses braces
9
9
LL | println!("\x7B}\u{8} {", 1);
10
10
| ~~~~~
11
11
12
- error: invalid format string: expected `'}' `, found `'a' `
12
+ error: invalid format string: expected `} `, found `a `
13
13
--> $DIR/format-string-error-2.rs:5:5
14
14
|
15
15
LL | format!("{
16
16
| - because of this opening brace
17
17
LL | a");
18
- | ^ expected `'}' ` in format string
18
+ | ^ expected `} ` in format string
19
19
|
20
20
= note: if you intended to print `{`, you can escape it using `{{`
21
21
22
- error: invalid format string: expected `'}' `, found `'b' `
22
+ error: invalid format string: expected `} `, found `b `
23
23
--> $DIR/format-string-error-2.rs:9:5
24
24
|
25
25
LL | format!("{ \
26
26
| - because of this opening brace
27
27
LL | \
28
28
LL | b");
29
- | ^ expected `'}' ` in format string
29
+ | ^ expected `} ` in format string
30
30
|
31
31
= note: if you intended to print `{`, you can escape it using `{{`
32
32
33
- error: invalid format string: expected `'}' `, found `'\' `
33
+ error: invalid format string: expected `} `, found `\ `
34
34
--> $DIR/format-string-error-2.rs:11:18
35
35
|
36
36
LL | format!(r#"{ \
37
- | - ^ expected `'}' ` in format string
37
+ | - ^ expected `} ` in format string
38
38
| |
39
39
| because of this opening brace
40
40
|
41
41
= note: if you intended to print `{`, you can escape it using `{{`
42
42
43
- error: invalid format string: expected `'}' `, found `'\' `
43
+ error: invalid format string: expected `} `, found `\ `
44
44
--> $DIR/format-string-error-2.rs:15:18
45
45
|
46
46
LL | format!(r#"{ \n
47
- | - ^ expected `'}' ` in format string
47
+ | - ^ expected `} ` in format string
48
48
| |
49
49
| because of this opening brace
50
50
|
51
51
= note: if you intended to print `{`, you can escape it using `{{`
52
52
53
- error: invalid format string: expected `'}' `, found `'e' `
53
+ error: invalid format string: expected `} `, found `e `
54
54
--> $DIR/format-string-error-2.rs:21:5
55
55
|
56
56
LL | format!("{ \n
57
57
| - because of this opening brace
58
58
LL | \n
59
59
LL | e");
60
- | ^ expected `'}' ` in format string
60
+ | ^ expected `} ` in format string
61
61
|
62
62
= note: if you intended to print `{`, you can escape it using `{{`
63
63
64
- error: invalid format string: expected `'}' `, found `'a' `
64
+ error: invalid format string: expected `} `, found `a `
65
65
--> $DIR/format-string-error-2.rs:25:5
66
66
|
67
67
LL | {
68
68
| - because of this opening brace
69
69
LL | a");
70
- | ^ expected `'}' ` in format string
70
+ | ^ expected `} ` in format string
71
71
|
72
72
= note: if you intended to print `{`, you can escape it using `{{`
73
73
74
- error: invalid format string: expected `'}' `, found `'a' `
74
+ error: invalid format string: expected `} `, found `a `
75
75
--> $DIR/format-string-error-2.rs:29:5
76
76
|
77
77
LL | {
78
78
| - because of this opening brace
79
79
LL | a
80
- | ^ expected `'}' ` in format string
80
+ | ^ expected `} ` in format string
81
81
|
82
82
= note: if you intended to print `{`, you can escape it using `{{`
83
83
84
- error: invalid format string: expected `'}' `, found `'b' `
84
+ error: invalid format string: expected `} `, found `b `
85
85
--> $DIR/format-string-error-2.rs:35:5
86
86
|
87
87
LL | { \
88
88
| - because of this opening brace
89
89
LL | \
90
90
LL | b");
91
- | ^ expected `'}' ` in format string
91
+ | ^ expected `} ` in format string
92
92
|
93
93
= note: if you intended to print `{`, you can escape it using `{{`
94
94
95
- error: invalid format string: expected `'}' `, found `'b' `
95
+ error: invalid format string: expected `} `, found `b `
96
96
--> $DIR/format-string-error-2.rs:40:5
97
97
|
98
98
LL | { \
99
99
| - because of this opening brace
100
100
LL | \
101
101
LL | b \
102
- | ^ expected `'}' ` in format string
102
+ | ^ expected `} ` in format string
103
103
|
104
104
= note: if you intended to print `{`, you can escape it using `{{`
105
105
106
- error: invalid format string: expected `'}' `, found `'\' `
106
+ error: invalid format string: expected `} `, found `\ `
107
107
--> $DIR/format-string-error-2.rs:45:8
108
108
|
109
109
LL | raw { \
110
- | - ^ expected `'}' ` in format string
110
+ | - ^ expected `} ` in format string
111
111
| |
112
112
| because of this opening brace
113
113
|
114
114
= note: if you intended to print `{`, you can escape it using `{{`
115
115
116
- error: invalid format string: expected `'}' `, found `'\' `
116
+ error: invalid format string: expected `} `, found `\ `
117
117
--> $DIR/format-string-error-2.rs:50:8
118
118
|
119
119
LL | raw { \n
120
- | - ^ expected `'}' ` in format string
120
+ | - ^ expected `} ` in format string
121
121
| |
122
122
| because of this opening brace
123
123
|
124
124
= note: if you intended to print `{`, you can escape it using `{{`
125
125
126
- error: invalid format string: expected `'}' `, found `'e' `
126
+ error: invalid format string: expected `} `, found `e `
127
127
--> $DIR/format-string-error-2.rs:57:5
128
128
|
129
129
LL | { \n
130
130
| - because of this opening brace
131
131
LL | \n
132
132
LL | e");
133
- | ^ expected `'}' ` in format string
133
+ | ^ expected `} ` in format string
134
134
|
135
135
= note: if you intended to print `{`, you can escape it using `{{`
136
136
137
- error: invalid format string: expected `'}' `, found `'a' `
137
+ error: invalid format string: expected `} `, found `a `
138
138
--> $DIR/format-string-error-2.rs:67:5
139
139
|
140
140
LL | {
141
141
| - because of this opening brace
142
142
LL | asdf}
143
- | ^ expected `'}' ` in format string
143
+ | ^ expected `} ` in format string
144
144
|
145
145
= note: if you intended to print `{`, you can escape it using `{{`
146
146
@@ -150,11 +150,11 @@ error: 1 positional argument in format string, but no arguments were given
150
150
LL | println!("\t{}");
151
151
| ^^
152
152
153
- error: invalid format string: expected `'}' ` but string was terminated
153
+ error: invalid format string: expected `} ` but string was terminated
154
154
--> $DIR/format-string-error-2.rs:74:27
155
155
|
156
156
LL | println!("\x7B}\u{8} {", 1);
157
- | -^ expected `'}' ` in format string
157
+ | -^ expected `} ` in format string
158
158
| |
159
159
| because of this opening brace
160
160
|
0 commit comments