2018-11-24 17:37:35 -06:00
|
|
|
error: #[serde(flatten)] cannot be used on tuple structs
|
2021-10-08 01:46:15 -05:00
|
|
|
--> tests/ui/conflict/flatten-tuple-struct.rs:6:17
|
2018-11-24 17:52:15 -06:00
|
|
|
|
|
2023-06-07 22:02:04 -05:00
|
|
|
5 | #[derive(Serialize)]
|
|
|
|
| --------- in this derive macro expansion
|
2018-12-31 20:36:59 -06:00
|
|
|
6 | struct Foo(u32, #[serde(flatten)] HashMap<String, String>);
|
2018-11-29 00:01:17 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-06-07 22:02:04 -05:00
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
|