File: invalid_format_description.stderr

package info (click to toggle)
rust-time 0.3.47-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,972 kB
  • sloc: makefile: 2
file content (229 lines) | stat: -rw-r--r-- 8,459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
error: expected string literal
 --> tests/integration/compile-fail/invalid_format_description.rs:4:13
  |
4 |     let _ = format_description!();
  |             ^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in the macro `format_description` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected component name
 --> tests/integration/compile-fail/invalid_format_description.rs:5:33
  |
5 |     let _ = format_description!("[]");
  |                                 ^^^^

error: invalid component
 --> tests/integration/compile-fail/invalid_format_description.rs:6:33
  |
6 |     let _ = format_description!("[foo]");
  |                                 ^^^^^^^

error: expected component name
 --> tests/integration/compile-fail/invalid_format_description.rs:7:33
  |
7 |     let _ = format_description!("[");
  |                                 ^^^

error: modifier must be of the form `key:value`
 --> tests/integration/compile-fail/invalid_format_description.rs:8:33
  |
8 |     let _ = format_description!("[hour foo]");
  |                                 ^^^^^^^^^^^^

error: unexpected token: x
 --> tests/integration/compile-fail/invalid_format_description.rs:9:36
  |
9 |     let _ = format_description!("" x);
  |                                    ^

error: expected string literal
  --> tests/integration/compile-fail/invalid_format_description.rs:10:33
   |
10 |     let _ = format_description!(x);
   |                                 ^

error: expected string literal
  --> tests/integration/compile-fail/invalid_format_description.rs:11:33
   |
11 |     let _ = format_description!(0);
   |                                 ^

error: expected string literal
  --> tests/integration/compile-fail/invalid_format_description.rs:12:33
   |
12 |     let _ = format_description!({});
   |                                 ^^

error: invalid component
  --> tests/integration/compile-fail/invalid_format_description.rs:14:33
   |
14 |     let _ = format_description!("[ invalid ]");
   |                                 ^^^^^^^^^^^^^

error: expected component name
  --> tests/integration/compile-fail/invalid_format_description.rs:15:33
   |
15 |     let _ = format_description!("[");
   |                                 ^^^

error: expected component name
  --> tests/integration/compile-fail/invalid_format_description.rs:16:33
   |
16 |     let _ = format_description!("[ ");
   |                                 ^^^^

error: expected component name
  --> tests/integration/compile-fail/invalid_format_description.rs:17:33
   |
17 |     let _ = format_description!("[]");
   |                                 ^^^^

error: invalid modifier key
  --> tests/integration/compile-fail/invalid_format_description.rs:18:33
   |
18 |     let _ = format_description!("[day sign:mandatory]");
   |                                 ^^^^^^^^^^^^^^^^^^^^^^

error: expected modifier value
  --> tests/integration/compile-fail/invalid_format_description.rs:19:33
   |
19 |     let _ = format_description!("[day sign:]");
   |                                 ^^^^^^^^^^^^^

error: expected modifier key
  --> tests/integration/compile-fail/invalid_format_description.rs:20:33
   |
20 |     let _ = format_description!("[day :mandatory]");
   |                                 ^^^^^^^^^^^^^^^^^^

error: unclosed bracket
  --> tests/integration/compile-fail/invalid_format_description.rs:21:33
   |
21 |     let _ = format_description!("[day sign:mandatory");
   |                                 ^^^^^^^^^^^^^^^^^^^^^

error: invalid modifier value
  --> tests/integration/compile-fail/invalid_format_description.rs:22:33
   |
22 |     let _ = format_description!("[day padding:invalid]");
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^

error: expected `=`
  --> tests/integration/compile-fail/invalid_format_description.rs:24:13
   |
24 |     let _ = format_description!(version);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `format_description` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `=`
  --> tests/integration/compile-fail/invalid_format_description.rs:25:41
   |
25 |     let _ = format_description!(version "");
   |                                         ^^

error: expected 1 or 2
  --> tests/integration/compile-fail/invalid_format_description.rs:26:13
   |
26 |     let _ = format_description!(version =);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `format_description` (in Nightly builds, run with -Z macro-backtrace for more info)

error: invalid format description version
  --> tests/integration/compile-fail/invalid_format_description.rs:27:43
   |
27 |     let _ = format_description!(version = 0);
   |                                           ^

error: unexpected end of input
  --> tests/integration/compile-fail/invalid_format_description.rs:28:13
   |
28 |     let _ = format_description!(version = 1);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `format_description` (in Nightly builds, run with -Z macro-backtrace for more info)

error: invalid format description version
  --> tests/integration/compile-fail/invalid_format_description.rs:29:43
   |
29 |     let _ = format_description!(version = 3);
   |                                           ^

error: expected 1 or 2
  --> tests/integration/compile-fail/invalid_format_description.rs:30:43
   |
30 |     let _ = format_description!(version = two);
   |                                           ^^^

error: invalid escape sequence
  --> tests/integration/compile-fail/invalid_format_description.rs:32:46
   |
32 |     let _ = format_description!(version = 2, r"\a");
   |                                              ^^^^^

error: unexpected end of input
  --> tests/integration/compile-fail/invalid_format_description.rs:33:46
   |
33 |     let _ = format_description!(version = 2, r"\");
   |                                              ^^^^

error: modifier must be of the form `key:value`
  --> tests/integration/compile-fail/invalid_format_description.rs:35:46
   |
35 |     let _ = format_description!(version = 2, "[year [month]]");
   |                                              ^^^^^^^^^^^^^^^^

error: expected whitespace after `optional`
  --> tests/integration/compile-fail/invalid_format_description.rs:36:46
   |
36 |     let _ = format_description!(version = 2, "[optional[]]");
   |                                              ^^^^^^^^^^^^^^

error: expected whitespace after `first`
  --> tests/integration/compile-fail/invalid_format_description.rs:37:46
   |
37 |     let _ = format_description!(version = 2, "[first[]]");
   |                                              ^^^^^^^^^^^

error: unclosed bracket
  --> tests/integration/compile-fail/invalid_format_description.rs:38:46
   |
38 |     let _ = format_description!(version = 2, "[optional []");
   |                                              ^^^^^^^^^^^^^^

error: unclosed bracket
  --> tests/integration/compile-fail/invalid_format_description.rs:39:46
   |
39 |     let _ = format_description!(version = 2, "[first []");
   |                                              ^^^^^^^^^^^

error: unclosed bracket
  --> tests/integration/compile-fail/invalid_format_description.rs:40:46
   |
40 |     let _ = format_description!(version = 2, "[optional [");
   |                                              ^^^^^^^^^^^^^

error: unclosed bracket
  --> tests/integration/compile-fail/invalid_format_description.rs:41:46
   |
41 |     let _ = format_description!(version = 2, "[optional [[year");
   |                                              ^^^^^^^^^^^^^^^^^^

error: expected opening bracket
  --> tests/integration/compile-fail/invalid_format_description.rs:42:46
   |
42 |     let _ = format_description!(version = 2, "[optional ");
   |                                              ^^^^^^^^^^^^

error: missing required modifier
  --> tests/integration/compile-fail/invalid_format_description.rs:44:33
   |
44 |     let _ = format_description!("[ignore]");
   |                                 ^^^^^^^^^^

error: invalid modifier value
  --> tests/integration/compile-fail/invalid_format_description.rs:45:33
   |
45 |     let _ = format_description!("[ignore count:0]");
   |                                 ^^^^^^^^^^^^^^^^^^