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