As mentioned in #1407, the following code is transpiled to broken Rust code in a static/global context:
char *static_char_ptr = (char[]) { "hello" };
pub static mut static_char_ptr: *mut core::ffi::c_char = unsafe {
[
::core::mem::transmute::<[u8; 6], [core::ffi::c_char; 6]>(*b"hello\0"),
0,
0,
0,
0,
0,
]
.as_ptr() as *mut _
};