summaryrefslogtreecommitdiff
path: root/exercises/threads/threads3.rs
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2023-09-06 09:31:46 +0200
committerGitHub <noreply@github.com>2023-09-06 09:31:46 +0200
commit4d04aad8902262d73d05b066ef0b8ffcd4fb634d (patch)
tree31c90ca2ff727980780e5c29882ca17c53109f16 /exercises/threads/threads3.rs
parent847b57423f2a2500b666ec0085cbd897b7b7139f (diff)
parent193b600382ead22a24d2c26ca3a9117e7ad18be8 (diff)
Merge pull request #1641 from mo8it/move-semantics5-test
Convert exercises with assertions to tests
Diffstat (limited to 'exercises/threads/threads3.rs')
-rw-r--r--exercises/threads/threads3.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/exercises/threads/threads3.rs b/exercises/threads/threads3.rs
index db7d41b..91006bb 100644
--- a/exercises/threads/threads3.rs
+++ b/exercises/threads/threads3.rs
@@ -48,6 +48,7 @@ fn send_tx(q: Queue, tx: mpsc::Sender<u32>) -> () {
});
}
+#[test]
fn main() {
let (tx, rx) = mpsc::channel();
let queue = Queue::new();