File: variants_with_fields.stderr

package info (click to toggle)
rust-num-enum 0.5.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 348 kB
  • sloc: makefile: 2
file content (17 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: `num_enum` only supports unit variants (with no associated data), but `Number::NonZero` was not a unit variant.
 --> $DIR/variants_with_fields.rs:7:5
  |
7 |     NonZero(u8),
  |     ^^^^^^^^^^^

error: `num_enum` only supports unit variants (with no associated data), but `Colour::Red` was not a unit variant.
  --> $DIR/variants_with_fields.rs:13:5
   |
13 |     Red { intensity: u8 },
   |     ^^^^^^^^^^^^^^^^^^^^^

error: `num_enum` only supports unit variants (with no associated data), but `Meaningless::Beep` was not a unit variant.
  --> $DIR/variants_with_fields.rs:19:5
   |
19 |     Beep(),
   |     ^^^^^^