We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeea213 commit 3bc462cCopy full SHA for 3bc462c
1 file changed
tests/unit/out/unsafe/void_cast.rs
@@ -20,7 +20,7 @@ pub unsafe fn unused_ref_param_1(x: *const NonTrivial) {
20
pub unsafe fn unused_ptr_param_2(mut p: *const NonTrivial) {
21
&(*p);
22
}
23
-pub static mut side_effect_counter: i32 = unsafe { 0 };
+pub static mut side_effect_counter: i32 = 0;
24
pub unsafe fn bump_and_return_3() -> i32 {
25
side_effect_counter.prefix_inc();
26
return side_effect_counter;
0 commit comments