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
18
//! Test: Duplicate primaries should fail compilation
//!
//! This test verifies that primary! macro detects duplicate primary names
//! after normalization. Token, token, and TOKEN all normalize to "TOKEN" and
//! should be rejected as duplicates.

use waddling_errors_macros::primary;

primary! {
    Token {
        docs: "Token operations",
    },
    token {
        docs: "This is a duplicate - should fail!",
    },
}

fn main() {}