aboutsummaryrefslogtreecommitdiff
path: root/tests/recurse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/recurse.rs')
-rw-r--r--tests/recurse.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/recurse.rs b/tests/recurse.rs
index 2920a41..d3f4124 100644
--- a/tests/recurse.rs
+++ b/tests/recurse.rs
@@ -1,10 +1,11 @@
-use futures::executor::block_on;
-use futures::future::{self, FutureExt, BoxFuture};
-use std::sync::mpsc;
-use std::thread;
-
+#[cfg(feature = "executor")] // executor::
#[test]
fn lots() {
+ use futures::executor::block_on;
+ use futures::future::{self, FutureExt, BoxFuture};
+ use std::sync::mpsc;
+ use std::thread;
+
fn do_it(input: (i32, i32)) -> BoxFuture<'static, i32> {
let (n, x) = input;
if n == 0 {