]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sync/mpsc/select.rs
stabilize `#[must_use]` for functions and must-use operators
[rust.git] / src / libstd / sync / mpsc / select.rs
index a9f3cea243f366c61e0abf759c474c95a00581ae..9310dad9172a9f816436039b0d6bb4e15d836dc6 100644 (file)
@@ -518,6 +518,7 @@ fn stress() {
         }
     }
 
+    #[allow(unused_must_use)]
     #[test]
     fn cloning() {
         let (tx1, rx1) = channel::<i32>();
@@ -540,6 +541,7 @@ fn cloning() {
         tx3.send(()).unwrap();
     }
 
+    #[allow(unused_must_use)]
     #[test]
     fn cloning2() {
         let (tx1, rx1) = channel::<i32>();