1 2 3 4 5 6
#[test] fn compile_test() { let t = trybuild::TestCases::new(); t.pass("tests/pass/*.rs"); t.compile_fail("tests/compile_fail/*.rs"); }