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
//! Compile-fail tests for waddling-errors-macros
//!
//! These tests ensure that invalid macro usage results in compile-time errors.
//! Uses trybuild to test that certain code patterns fail to compile with expected error messages.

#[test]
fn compile_fail_tests() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/compile-fail/*.rs");
}

#[test]
fn compile_pass_tests() {
    let t = trybuild::TestCases::new();
    t.pass("tests/compile-pass/*.rs");
}