about summary refs log tree commit diff
path: root/tests/ui/span/send-is-not-static-std-sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/span/send-is-not-static-std-sync.rs')
-rw-r--r--tests/ui/span/send-is-not-static-std-sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/span/send-is-not-static-std-sync.rs b/tests/ui/span/send-is-not-static-std-sync.rs
index f8ab5243c22..9c1ee287154 100644
--- a/tests/ui/span/send-is-not-static-std-sync.rs
+++ b/tests/ui/span/send-is-not-static-std-sync.rs
@@ -46,7 +46,7 @@ fn channel() {
         tx.send(&z).unwrap();
     }
     //~^^ ERROR `z` does not live long enough
-    // (channels lack #[may_dangle], thus their dtors are implicit uses of `z`)
+    tx.use_ref(); // (channel drop glue does not use `z` => needs explicit use)
 }
 
 fn main() {}