| 1 |
error: unexpected end of input |
| 2 |
--> tests/integration/compile-fail/invalid_serializer.rs:3:1 |
| 3 |
| |
| 4 |
3 | serde::format_description!(); // unexpected end of input |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 |
| |
| 7 |
= note: this error originates in the macro `serde::format_description` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 8 |
|
| 9 |
error: unexpected token: "bad string" |
| 10 |
--> tests/integration/compile-fail/invalid_serializer.rs:4:28 |
| 11 |
| |
| 12 |
4 | serde::format_description!("bad string", OffsetDateTime, "[year] [month]"); // module name is not ident |
| 13 |
| ^^^^^^^^^^^^ |
| 14 |
|
| 15 |
error: unexpected token: : |
| 16 |
--> tests/integration/compile-fail/invalid_serializer.rs:5:37 |
| 17 |
| |
| 18 |
5 | serde::format_description!(my_format: OffsetDateTime, "[year] [month]"); // not a comma |
| 19 |
| ^ |
| 20 |
|
| 21 |
error: unexpected end of input |
| 22 |
--> tests/integration/compile-fail/invalid_serializer.rs:6:1 |
| 23 |
| |
| 24 |
6 | serde::format_description!(my_format,); // missing formattable and string |
| 25 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 26 |
| |
| 27 |
= note: this error originates in the macro `serde::format_description` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 28 |
|
| 29 |
error: unexpected token: "[year] [month]" |
| 30 |
--> tests/integration/compile-fail/invalid_serializer.rs:7:39 |
| 31 |
| |
| 32 |
7 | serde::format_description!(my_format, "[year] [month]"); // missing formattable |
| 33 |
| ^^^^^^^^^^^^^^^^ |
| 34 |
|
| 35 |
error: unexpected token: "[year] [month]" |
| 36 |
--> tests/integration/compile-fail/invalid_serializer.rs:8:44 |
| 37 |
| |
| 38 |
8 | serde::format_description!(OffsetDateTime, "[year] [month]"); // missing ident |
| 39 |
| ^^^^^^^^^^^^^^^^ |
| 40 |
|
| 41 |
error: unexpected end of input |
| 42 |
--> tests/integration/compile-fail/invalid_serializer.rs:9:1 |
| 43 |
| |
| 44 |
9 | serde::format_description!(my_format, OffsetDateTime); // missing string format |
| 45 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 46 |
| |
| 47 |
= note: this error originates in the macro `serde::format_description` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 48 |
|
| 49 |
error: unexpected end of input |
| 50 |
--> tests/integration/compile-fail/invalid_serializer.rs:10:1 |
| 51 |
| |
| 52 |
10 | serde::format_description!(my_format, OffsetDateTime,); // missing string format |
| 53 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 54 |
| |
| 55 |
= note: this error originates in the macro `serde::format_description` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 56 |
|
| 57 |
error: unexpected token: "[year] [month]" |
| 58 |
--> tests/integration/compile-fail/invalid_serializer.rs:11:54 |
| 59 |
| |
| 60 |
11 | serde::format_description!(my_format, OffsetDateTime "[year] [month]"); // missing comma |
| 61 |
| ^^^^^^^^^^^^^^^^ |
| 62 |
|
| 63 |
error: unexpected token: : |
| 64 |
--> tests/integration/compile-fail/invalid_serializer.rs:12:54 |
| 65 |
| |
| 66 |
12 | serde::format_description!(my_format, OffsetDateTime : "[year] [month]"); // not a comma |
| 67 |
| ^ |
| 68 |
|
| 69 |
error: invalid component |
| 70 |
--> tests/integration/compile-fail/invalid_serializer.rs:13:55 |
| 71 |
| |
| 72 |
13 | serde::format_description!(my_format, OffsetDateTime, "[bad]"); // bad component name |
| 73 |
| ^^^^^^^ |
| 74 |
|
| 75 |
error[E0425]: cannot find value `not_string` in this scope |
| 76 |
--> tests/integration/compile-fail/invalid_serializer.rs:14:55 |
| 77 |
| |
| 78 |
14 | serde::format_description!(my_format, OffsetDateTime, not_string); // not in scope |
| 79 |
| ^^^^^^^^^^ not found in this scope |