1 #[cfg(feature = "std")] main()2 fn main() { 3 let (sender, receiver) = oneshot::channel::<u128>(); 4 std::mem::drop(sender); 5 receiver.recv().unwrap_err(); 6 } 7 8 #[cfg(not(feature = "std"))] main()9 fn main() { 10 panic!("This example is only for when the \"sync\" feature is used"); 11 } 12