diff --git a/tests/lib.rs b/tests/lib.rs index ee180666..02044b97 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -1,3 +1,9 @@ +#[cfg(any(not(feature = "debug"), not(feature = "compare")))] +compile_error!( + "Please enable the `debug` and `compare` features in order to compile and run the tests. + Example: `cargo test --features debug --features compare`" +); + #[cfg(feature = "abomonation-serialize")] extern crate abomonation; #[macro_use]