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