v0.7.12 introduced the use of F_DUPFD_CLOEXEC in Selector::try_clone, but when run on macOS 11.3, gives an error of
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', src/main.rs:5:64
The error is fixed in mio v0.8, but currently tokio (v1.6) cannot run with feature = ["net"], as the Waker depends on cloning the Selector.