Debian Codegraph @

debian/rust-vendor/defmt/tests/ui/derive-transparent-empty.stderr

raw
1 error: Transparent format can only be applied to structs with one field (got 0)
2 --> tests/ui/derive-transparent-empty.rs:7:10
3 |
4 7 | #[derive(defmt::Format)]
5 | ^^^^^^^^^^^^^
6 |
7 = note: this error originates in the derive macro `defmt::Format` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 error: Transparent format can only be applied when all variants have exactly one field (got 0)
10 --> tests/ui/derive-transparent-empty.rs:11:10
11 |
12 11 | #[derive(defmt::Format)]
13 | ^^^^^^^^^^^^^
14 |
15 = note: this error originates in the derive macro `defmt::Format` (in Nightly builds, run with -Z macro-backtrace for more info)
16
17 error[E0004]: non-exhaustive patterns: type `&&Empty` is non-empty
18 --> tests/ui/derive-transparent-empty.rs:3:10
19 |
20 3 | #[derive(defmt::Format)]
21 | ^^^^^^^^^^^^^
22 |
23 note: `Empty` defined here
24 --> tests/ui/derive-transparent-empty.rs:5:6
25 |
26 5 | enum Empty {}
27 | ^^^^^
28 = note: the matched value is of type `&&Empty`
29 = note: this error originates in the derive macro `defmt::Format` (in Nightly builds, run with -Z macro-backtrace for more info)