about summary refs log tree commit diff
path: root/tests/ui/drop/drop-struct-as-object.rs
diff options
context:
space:
mode:
authorObei Sideg <obei.sideg@gmail.com>2024-08-24 06:49:09 +0300
committerObei Sideg <obei.sideg@gmail.com>2024-09-13 14:10:56 +0300
commit3b0ce1bc33d30d7d116ee9af60df873e04bd74dc (patch)
treed6f3aef62b82ac74c47a292c38caee216e56c77b /tests/ui/drop/drop-struct-as-object.rs
parent74cab947f79045e34eb973199274ee5f3c132bd8 (diff)
downloadrust-3b0ce1bc33d30d7d116ee9af60df873e04bd74dc.tar.gz
rust-3b0ce1bc33d30d7d116ee9af60df873e04bd74dc.zip
Update tests for hidden references to mutable static
Diffstat (limited to 'tests/ui/drop/drop-struct-as-object.rs')
-rw-r--r--tests/ui/drop/drop-struct-as-object.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/drop/drop-struct-as-object.rs b/tests/ui/drop/drop-struct-as-object.rs
index 07c8950f1b2..46633bd7075 100644
--- a/tests/ui/drop/drop-struct-as-object.rs
+++ b/tests/ui/drop/drop-struct-as-object.rs
@@ -5,6 +5,9 @@
 // Test that destructor on a struct runs successfully after the struct
 // is boxed and converted to an object.
 
+// FIXME(static_mut_refs): this could use an atomic
+#![allow(static_mut_refs)]
+
 static mut value: usize = 0;
 
 struct Cat {