forked from mirrors/gecko-dev
11 lines
275 B
Rust
11 lines
275 B
Rust
#[cfg(feature = "std")]
|
|
fn main() {
|
|
let (sender, receiver) = oneshot::channel::<u128>();
|
|
std::mem::drop(sender);
|
|
receiver.recv().unwrap_err();
|
|
}
|
|
|
|
#[cfg(not(feature = "std"))]
|
|
fn main() {
|
|
panic!("This example is only for when the \"sync\" feature is used");
|
|
}
|