Skip to content

Commit c8eb725

Browse files
committed
Making cargo test result in a compile error if you don't use it with --features test
1 parent 2ed5ce6 commit c8eb725

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
//! [`wait_for_click()`](struct.Turtle.html#method.wait_for_click) to wait for the user to click
3232
//! anywhere on the screen before proceeding.
3333
34+
#[cfg(all(test, not(feature = "test")))]
35+
compile_error!("Make sure you run tests with `cargo test --features test`");
36+
3437
#[macro_use]
3538
extern crate serde_derive;
3639

0 commit comments

Comments
 (0)