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