diff options
| author | Obei Sideg <obei.sideg@gmail.com> | 2024-08-24 06:49:09 +0300 |
|---|---|---|
| committer | Obei Sideg <obei.sideg@gmail.com> | 2024-09-13 14:10:56 +0300 |
| commit | 3b0ce1bc33d30d7d116ee9af60df873e04bd74dc (patch) | |
| tree | d6f3aef62b82ac74c47a292c38caee216e56c77b /tests/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs | |
| parent | 74cab947f79045e34eb973199274ee5f3c132bd8 (diff) | |
| download | rust-3b0ce1bc33d30d7d116ee9af60df873e04bd74dc.tar.gz rust-3b0ce1bc33d30d7d116ee9af60df873e04bd74dc.zip | |
Update tests for hidden references to mutable static
Diffstat (limited to 'tests/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs')
| -rw-r--r-- | tests/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs b/tests/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs index fef9f24d462..57e8b228649 100644 --- a/tests/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs +++ b/tests/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs @@ -2,6 +2,9 @@ // This test verifies that temporaries created for `while`'s and `if` // conditions are dropped after the condition is evaluated. +// FIXME(static_mut_refs): this could use an atomic +#![allow(static_mut_refs)] + struct Temporary; static mut DROPPED: isize = 0; |
