extract-variant 1.0.0

Destructure expressions into, and return assignments from, a single pattern.
Documentation
1
2
3
4
5
6
7
8
#[test]
fn tests() {
    let t = trybuild::TestCases::new();
    t.pass("tests/simple.rs");
    t.pass("tests/guard.rs");
    t.compile_fail("tests/or_pattern.rs");
    t.pass("tests/multi_extract.rs")
}