enum-strings 0.1.0

Derive a const fn per named string on a unit enum, every variant required to supply every string
Documentation
1
2
3
4
5
6
7
8
9
//! Every file under `tests/pass` must compile and run, every file under
//! `tests/compile_fail` must fail with exactly its `.stderr`.

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