1 2 3 4 5 6 7 8 9 10 11
use trybuild::TestCases; #[test] fn errors() { TestCases::new().compile_fail("tests/compilation/examples/fail_*.rs"); } #[test] fn valid() { TestCases::new().pass("tests/compilation/examples/pass_*.rs"); }