1 #![warn(rust_2018_idioms)] 2 #![cfg(feature = "full")] 3 #![cfg(unix)] 4 5 use tokio::signal::unix::{signal, SignalKind}; 6 7 #[test] 8 #[should_panic] no_runtime_panics_creating_signals()9 fn no_runtime_panics_creating_signals() { 10 let _ = signal(SignalKind::hangup()); 11 } 12