diff --git a/src/sync/mpsc.rs b/src/sync/mpsc.rs index 9c55b0f..8700025 100644 --- a/src/sync/mpsc.rs +++ b/src/sync/mpsc.rs @@ -82,13 +82,13 @@ pub fn channel() -> (Sender, Receiver) { (sender, receiver) } -use alloc::boxed::Box; -use super::*; -use thread; - pub mod test { //! Copied from std::mpsc::test + use alloc::boxed::Box; + use super::*; + use thread; + fn smoke() { let (tx, rx) = channel::(); tx.send(1).unwrap();