statum-macros 0.8.2

Proc macros for representing legal workflow and protocol states explicitly in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
error: Error: #[state] enum `EmptyState` must declare at least one variant.
       Fix: add unit variants like `Draft` or single-payload variants like `InReview(ReviewData)`.
  --> tests/ui/invalid_state_empty_enum.rs:13:6
   |
13 | enum EmptyState {}
   |      ^^^^^^^^^^

error[E0601]: `main` function not found in crate `$CRATE`
  --> tests/ui/invalid_state_empty_enum.rs:13:19
   |
13 | enum EmptyState {}
   |                   ^ consider adding a `main` function to `$DIR/tests/ui/invalid_state_empty_enum.rs`