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