substruct 0.1.3

A proc-macro to create subsets of structs
Documentation
1
2
3
4
5
6
7
8
9
10
#[test]
fn trybuild() {
    // This still compiles the crate normally, it just means that we also get
    // clippy warnings as well.
    std::env::set_var("RUSTC_WORKSPACE_WRAPPER", "clippy-driver");

    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/fail/*.rs");
    t.pass("tests/ui/pass/*.rs");
}