Debian Codegraph @

debian/missing-sources/time/tests/integration/compile-fail/invalid_serializer.rs

raw
1 use time::serde;
2
3 serde::format_description!(); // unexpected end of input
4 serde::format_description!("bad string", OffsetDateTime, "[year] [month]"); // module name is not ident
5 serde::format_description!(my_format: OffsetDateTime, "[year] [month]"); // not a comma
6 serde::format_description!(my_format,); // missing formattable and string
7 serde::format_description!(my_format, "[year] [month]"); // missing formattable
8 serde::format_description!(OffsetDateTime, "[year] [month]"); // missing ident
9 serde::format_description!(my_format, OffsetDateTime); // missing string format
10 serde::format_description!(my_format, OffsetDateTime,); // missing string format
11 serde::format_description!(my_format, OffsetDateTime "[year] [month]"); // missing comma
12 serde::format_description!(my_format, OffsetDateTime : "[year] [month]"); // not a comma
13 serde::format_description!(my_format, OffsetDateTime, "[bad]"); // bad component name
14 serde::format_description!(my_format, OffsetDateTime, not_string); // not in scope
15
16 fn main() {}