use trybuild::TestCases; #[test] fn test() { let t = TestCases::new(); // #[derive(New)] tests t.pass("tests/cases/new_boxed.rs"); t.pass("tests/cases/new_into.rs"); t.compile_fail("tests/cases/new_invalid_attr.rs"); // #[struct_enum] tests t.pass("tests/cases/struct_enum_generics.rs"); }