exit_safely 0.3.3

exit safely with custom exit codes while still calling `Drop` as needed. Aims for minimal magic and maximum flexibilty.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use trybuild::TestCases;

#[cfg(has_proc_macro_diagnostic)]
static PATH: &str = "./examples/nightly/examples/fail_*.rs";
#[cfg(not(has_proc_macro_diagnostic))]
static PATH: &str = "./examples/stable/examples/fail_*.rs";

#[test]
fn failures() {
    let t = TestCases::new();
    t.compile_fail(PATH);
}