2018-11-30 03:07:31 +02:00
|
|
|
error: Serde does not support derive for unions
|
2021-10-08 02:46:15 -04:00
|
|
|
--> tests/ui/unsupported/union_ser.rs:4:1
|
2018-11-30 03:07:31 +02:00
|
|
|
|
|
2023-06-07 20:02:04 -07:00
|
|
|
3 | #[derive(Deserialize)]
|
|
|
|
| ----------- in this derive macro expansion
|
2018-12-31 21:36:59 -05:00
|
|
|
4 | / union Union {
|
|
|
|
5 | | x: u8,
|
|
|
|
6 | | y: (),
|
|
|
|
7 | | }
|
2018-11-30 03:07:31 +02:00
|
|
|
| |_^
|
2023-06-07 20:02:04 -07:00
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
|