fn-error-context 0.1.0

An attribute macro to add context to errors from a function.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[test]
fn tests() {
    let tests = trybuild::TestCases::new();

    tests.pass("tests/simple.rs");
    tests.pass("tests/arg.rs");
    tests.pass("tests/arg_pattern.rs");
    tests.pass("tests/inherent.rs");
    tests.compile_fail("tests/missing_fmt.rs");
    tests.pass("tests/fmt_args.rs");
    tests.pass("tests/failure.rs");
    tests.pass("tests/non_copy_arg.rs");
    tests.pass("tests/non_copy_fmt_arg.rs");
    tests.pass("tests/as_ref.rs");
    tests.compile_fail("tests/fmt_missing_arg.rs");
    tests.compile_fail("tests/fmt_unused_arg.rs");
    tests.pass("tests/fmt_named_arg.rs");
}