| 1 |
error: Transparent format can only be applied when all variants have exactly one field (got 2) |
| 2 |
--> tests/ui/derive-transparent-multiple-fields.rs:4:13 |
| 3 |
| |
| 4 |
4 | Invalid { foo: u8, bar: i8 }, |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^ |
| 6 |
|
| 7 |
error: Transparent format can only be applied to structs with one field (got 2) |
| 8 |
--> tests/ui/derive-transparent-multiple-fields.rs:7:10 |
| 9 |
| |
| 10 |
7 | #[derive(defmt::Format)] |
| 11 |
| ^^^^^^^^^^^^^ |
| 12 |
| |
| 13 |
= note: this error originates in the derive macro `defmt::Format` (in Nightly builds, run with -Z macro-backtrace for more info) |