futures: tests/select_ok.rs: Don't break w/o "executor"
Symbols/Imports pushed down / localised
Tests gated with cfg()
Tests now build and pass with all valid feature combinations
See previous commits for details and rationale
+#[cfg(feature = "executor")] // executor::
+#[test]
+fn ignore_err() {
use futures::executor::block_on;
use futures::future::{err, ok, select_ok};
-#[test]
-fn ignore_err() {
let v = vec![
err(1),
err(2),
@@ -21,8 +22,12 @@ fn ignore_err() {
assert!(v.is_empty());
}
+#[cfg(feature = "executor")] // executor::
#[test]
fn last_err() {
+ use futures::executor::block_on;
+ use futures::future::{err, ok, select_ok};
+
let v = vec![
ok(1),
err(2),
