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