Skip to content

Commit 27e63bd

Browse files
cuvipertraviscross
andauthored
Use &raw mut STATIC_MUT in forward-looking code
Co-authored-by: Travis Cross <[email protected]>
1 parent 414e454 commit 27e63bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2024-10-17-Rust-1.82.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ extern "C" {
137137
static EXTERN_STATIC: Type;
138138
}
139139
fn main() {
140-
let static_mut_ptr = std::ptr::addr_of_mut!(STATIC_MUT);
140+
let static_mut_ptr = &raw mut STATIC_MUT;
141141
let extern_static_ptr = &raw const EXTERN_STATIC;
142142
}
143143
```

0 commit comments

Comments
 (0)