| 1 |
error: expected string literal |
| 2 |
--> tests/integration/compile-fail/invalid_format_description.rs:4:13 |
| 3 |
| |
| 4 |
4 | let _ = format_description!(); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^ |
| 6 |
| |
| 7 |
= note: this error originates in the macro `format_description` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 8 |
|
| 9 |
error: expected component name |
| 10 |
--> tests/integration/compile-fail/invalid_format_description.rs:5:33 |
| 11 |
| |
| 12 |
5 | let _ = format_description!("[]"); |
| 13 |
| ^^^^ |
| 14 |
|
| 15 |
error: invalid component |
| 16 |
--> tests/integration/compile-fail/invalid_format_description.rs:6:33 |
| 17 |
| |
| 18 |
6 | let _ = format_description!("[foo]"); |
| 19 |
| ^^^^^^^ |
| 20 |
|
| 21 |
error: expected component name |
| 22 |
--> tests/integration/compile-fail/invalid_format_description.rs:7:33 |
| 23 |
| |
| 24 |
7 | let _ = format_description!("["); |
| 25 |
| ^^^ |
| 26 |
|
| 27 |
error: modifier must be of the form `key:value` |
| 28 |
--> tests/integration/compile-fail/invalid_format_description.rs:8:33 |
| 29 |
| |
| 30 |
8 | let _ = format_description!("[hour foo]"); |
| 31 |
| ^^^^^^^^^^^^ |
| 32 |
|
| 33 |
error: unexpected token: x |
| 34 |
--> tests/integration/compile-fail/invalid_format_description.rs:9:36 |
| 35 |
| |
| 36 |
9 | let _ = format_description!("" x); |
| 37 |
| ^ |
| 38 |
|
| 39 |
error: expected string literal |
| 40 |
--> tests/integration/compile-fail/invalid_format_description.rs:10:33 |
| 41 |
| |
| 42 |
10 | let _ = format_description!(x); |
| 43 |
| ^ |
| 44 |
|
| 45 |
error: expected string literal |
| 46 |
--> tests/integration/compile-fail/invalid_format_description.rs:11:33 |
| 47 |
| |
| 48 |
11 | let _ = format_description!(0); |
| 49 |
| ^ |
| 50 |
|
| 51 |
error: expected string literal |
| 52 |
--> tests/integration/compile-fail/invalid_format_description.rs:12:33 |
| 53 |
| |
| 54 |
12 | let _ = format_description!({}); |
| 55 |
| ^^ |
| 56 |
|
| 57 |
error: invalid component |
| 58 |
--> tests/integration/compile-fail/invalid_format_description.rs:14:33 |
| 59 |
| |
| 60 |
14 | let _ = format_description!("[ invalid ]"); |
| 61 |
| ^^^^^^^^^^^^^ |
| 62 |
|
| 63 |
error: expected component name |
| 64 |
--> tests/integration/compile-fail/invalid_format_description.rs:15:33 |
| 65 |
| |
| 66 |
15 | let _ = format_description!("["); |
| 67 |
| ^^^ |
| 68 |
|
| 69 |
error: expected component name |
| 70 |
--> tests/integration/compile-fail/invalid_format_description.rs:16:33 |
| 71 |
| |
| 72 |
16 | let _ = format_description!("[ "); |
| 73 |
| ^^^^ |
| 74 |
|
| 75 |
error: expected component name |
| 76 |
--> tests/integration/compile-fail/invalid_format_description.rs:17:33 |
| 77 |
| |
| 78 |
17 | let _ = format_description!("[]"); |
| 79 |
| ^^^^ |
| 80 |
|
| 81 |
error: invalid modifier key |
| 82 |
--> tests/integration/compile-fail/invalid_format_description.rs:18:33 |
| 83 |
| |
| 84 |
18 | let _ = format_description!("[day sign:mandatory]"); |
| 85 |
| ^^^^^^^^^^^^^^^^^^^^^^ |
| 86 |
|
| 87 |
error: expected modifier value |
| 88 |
--> tests/integration/compile-fail/invalid_format_description.rs:19:33 |
| 89 |
| |
| 90 |
19 | let _ = format_description!("[day sign:]"); |
| 91 |
| ^^^^^^^^^^^^^ |
| 92 |
|
| 93 |
error: expected modifier key |
| 94 |
--> tests/integration/compile-fail/invalid_format_description.rs:20:33 |
| 95 |
| |
| 96 |
20 | let _ = format_description!("[day :mandatory]"); |
| 97 |
| ^^^^^^^^^^^^^^^^^^ |
| 98 |
|
| 99 |
error: unclosed bracket |
| 100 |
--> tests/integration/compile-fail/invalid_format_description.rs:21:33 |
| 101 |
| |
| 102 |
21 | let _ = format_description!("[day sign:mandatory"); |
| 103 |
| ^^^^^^^^^^^^^^^^^^^^^ |
| 104 |
|
| 105 |
error: invalid modifier value |
| 106 |
--> tests/integration/compile-fail/invalid_format_description.rs:22:33 |
| 107 |
| |
| 108 |
22 | let _ = format_description!("[day padding:invalid]"); |
| 109 |
| ^^^^^^^^^^^^^^^^^^^^^^^ |
| 110 |
|
| 111 |
error: expected `=` |
| 112 |
--> tests/integration/compile-fail/invalid_format_description.rs:24:13 |
| 113 |
| |
| 114 |
24 | let _ = format_description!(version); |
| 115 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 116 |
| |
| 117 |
= note: this error originates in the macro `format_description` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 118 |
|
| 119 |
error: expected `=` |
| 120 |
--> tests/integration/compile-fail/invalid_format_description.rs:25:41 |
| 121 |
| |
| 122 |
25 | let _ = format_description!(version ""); |
| 123 |
| ^^ |
| 124 |
|
| 125 |
error: expected 1 or 2 |
| 126 |
--> tests/integration/compile-fail/invalid_format_description.rs:26:13 |
| 127 |
| |
| 128 |
26 | let _ = format_description!(version =); |
| 129 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 130 |
| |
| 131 |
= note: this error originates in the macro `format_description` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 132 |
|
| 133 |
error: invalid format description version |
| 134 |
--> tests/integration/compile-fail/invalid_format_description.rs:27:43 |
| 135 |
| |
| 136 |
27 | let _ = format_description!(version = 0); |
| 137 |
| ^ |
| 138 |
|
| 139 |
error: unexpected end of input |
| 140 |
--> tests/integration/compile-fail/invalid_format_description.rs:28:13 |
| 141 |
| |
| 142 |
28 | let _ = format_description!(version = 1); |
| 143 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 144 |
| |
| 145 |
= note: this error originates in the macro `format_description` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 146 |
|
| 147 |
error: invalid format description version |
| 148 |
--> tests/integration/compile-fail/invalid_format_description.rs:29:43 |
| 149 |
| |
| 150 |
29 | let _ = format_description!(version = 3); |
| 151 |
| ^ |
| 152 |
|
| 153 |
error: expected 1 or 2 |
| 154 |
--> tests/integration/compile-fail/invalid_format_description.rs:30:43 |
| 155 |
| |
| 156 |
30 | let _ = format_description!(version = two); |
| 157 |
| ^^^ |
| 158 |
|
| 159 |
error: invalid escape sequence |
| 160 |
--> tests/integration/compile-fail/invalid_format_description.rs:32:46 |
| 161 |
| |
| 162 |
32 | let _ = format_description!(version = 2, r"\a"); |
| 163 |
| ^^^^^ |
| 164 |
|
| 165 |
error: unexpected end of input |
| 166 |
--> tests/integration/compile-fail/invalid_format_description.rs:33:46 |
| 167 |
| |
| 168 |
33 | let _ = format_description!(version = 2, r"\"); |
| 169 |
| ^^^^ |
| 170 |
|
| 171 |
error: modifier must be of the form `key:value` |
| 172 |
--> tests/integration/compile-fail/invalid_format_description.rs:35:46 |
| 173 |
| |
| 174 |
35 | let _ = format_description!(version = 2, "[year [month]]"); |
| 175 |
| ^^^^^^^^^^^^^^^^ |
| 176 |
|
| 177 |
error: expected whitespace after `optional` |
| 178 |
--> tests/integration/compile-fail/invalid_format_description.rs:36:46 |
| 179 |
| |
| 180 |
36 | let _ = format_description!(version = 2, "[optional[]]"); |
| 181 |
| ^^^^^^^^^^^^^^ |
| 182 |
|
| 183 |
error: expected whitespace after `first` |
| 184 |
--> tests/integration/compile-fail/invalid_format_description.rs:37:46 |
| 185 |
| |
| 186 |
37 | let _ = format_description!(version = 2, "[first[]]"); |
| 187 |
| ^^^^^^^^^^^ |
| 188 |
|
| 189 |
error: unclosed bracket |
| 190 |
--> tests/integration/compile-fail/invalid_format_description.rs:38:46 |
| 191 |
| |
| 192 |
38 | let _ = format_description!(version = 2, "[optional []"); |
| 193 |
| ^^^^^^^^^^^^^^ |
| 194 |
|
| 195 |
error: unclosed bracket |
| 196 |
--> tests/integration/compile-fail/invalid_format_description.rs:39:46 |
| 197 |
| |
| 198 |
39 | let _ = format_description!(version = 2, "[first []"); |
| 199 |
| ^^^^^^^^^^^ |
| 200 |
|
| 201 |
error: unclosed bracket |
| 202 |
--> tests/integration/compile-fail/invalid_format_description.rs:40:46 |
| 203 |
| |
| 204 |
40 | let _ = format_description!(version = 2, "[optional ["); |
| 205 |
| ^^^^^^^^^^^^^ |
| 206 |
|
| 207 |
error: unclosed bracket |
| 208 |
--> tests/integration/compile-fail/invalid_format_description.rs:41:46 |
| 209 |
| |
| 210 |
41 | let _ = format_description!(version = 2, "[optional [[year"); |
| 211 |
| ^^^^^^^^^^^^^^^^^^ |
| 212 |
|
| 213 |
error: expected opening bracket |
| 214 |
--> tests/integration/compile-fail/invalid_format_description.rs:42:46 |
| 215 |
| |
| 216 |
42 | let _ = format_description!(version = 2, "[optional "); |
| 217 |
| ^^^^^^^^^^^^ |
| 218 |
|
| 219 |
error: missing required modifier |
| 220 |
--> tests/integration/compile-fail/invalid_format_description.rs:44:33 |
| 221 |
| |
| 222 |
44 | let _ = format_description!("[ignore]"); |
| 223 |
| ^^^^^^^^^^ |
| 224 |
|
| 225 |
error: invalid modifier value |
| 226 |
--> tests/integration/compile-fail/invalid_format_description.rs:45:33 |
| 227 |
| |
| 228 |
45 | let _ = format_description!("[ignore count:0]"); |
| 229 |
| ^^^^^^^^^^^^^^^^^^ |