mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
executor: move current-thread into crate (#1447)
The `CurrentThread` executor is exposed using a feature flag. Refs: #1264
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#[test]
|
||||
fn features() {
|
||||
let t = trybuild::TestCases::new();
|
||||
|
||||
#[cfg(feature = "executor-without-current-thread")]
|
||||
t.compile_fail("tests/ui/executor_without_current_thread.rs");
|
||||
|
||||
drop(t);
|
||||
}
|
||||
Reference in New Issue
Block a user