diff --git a/validator_derive_tests/Cargo.toml b/validator_derive_tests/Cargo.toml index b548ff59..c0e55169 100644 --- a/validator_derive_tests/Cargo.toml +++ b/validator_derive_tests/Cargo.toml @@ -7,6 +7,7 @@ edition = "2021" [features] default = ["test_ui"] test_ui = [] +nightly = [] [dev-dependencies] validator = { version = "0.18", path = "../validator", features = [ diff --git a/validator_derive_tests/tests/compile_test.rs b/validator_derive_tests/tests/compile_test.rs index bc67e4e0..04808d2b 100644 --- a/validator_derive_tests/tests/compile_test.rs +++ b/validator_derive_tests/tests/compile_test.rs @@ -2,6 +2,7 @@ #[test] fn ui() { let t = trybuild::TestCases::new(); + #[cfg(not(feature = "nightly"))] t.compile_fail("tests/compile-fail/**/*.rs"); t.pass("tests/run-pass/**/*.rs"); }