Fail test compilation if compare feature is missing

This commit is contained in:
Andreas Longva 2021-01-14 17:17:52 +01:00
parent 5869f784e5
commit c988ebb4e7

View File

@ -1,6 +1,6 @@
//! Unit tests
#[cfg(not(feature = "proptest-support"))]
compile_error!("Tests must be run with feature proptest-support");
#[cfg(any(not(feature = "proptest-support"), not(feature = "compare")))]
compile_error!("Tests must be run with features `proptest-support` and `compare`");
mod unit_tests;