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 components should fail compilation
//!
//! This test verifies that component! macro detects duplicate component names
//! after normalization. Auth, auth, and AUTH all normalize to "AUTH" and
//! should be rejected as duplicates.

use waddling_errors_macros::component;

component! {
    Auth {
        docs: "Authentication component",
    },
    auth {
        docs: "This is a duplicate - should fail!",
    },
}

fn main() {}