We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hint::black_box
1 parent a49cf7c commit 1f6a301Copy full SHA for 1f6a301
1 file changed
zeroize/tests/alloc.rs
@@ -43,6 +43,8 @@ impl<S: Zeroize> Drop for SecretBox<S> {
43
44
#[test]
45
fn proxy_alloc_test() {
46
- let _b1 = SecretBox::new([u128::MAX; 10]);
47
- let _b2 = SecretBox::new([u8::MAX; 160]);
+ let b1 = SecretBox::new([u128::MAX; 10]);
+ core::hint::black_box(&b1);
48
+ let b2 = SecretBox::new([u8::MAX; 160]);
49
+ core::hint::black_box(&b2);
50
}
0 commit comments