waddling-errors-macros 0.7.3

Procedural macros for structured error codes with compile-time validation and taxonomy enforcement
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Test: Sequence number exceeding 999 should fail compilation
//!
//! This test verifies that sequence! macro rejects values > 999
//! as per WDP spec (001-999 range).

pub mod sequences {
    use waddling_errors_macros::sequence;

    sequence! {
        // This should fail - exceeds maximum of 999
        OVERFLOW(1001) {
            description: "This should not compile",
        },
    }
}

fn main() {}