diff --git a/tests/scryer/ffi.rs b/tests/scryer/ffi.rs index bbc24c50..f91be5e2 100644 --- a/tests/scryer/ffi.rs +++ b/tests/scryer/ffi.rs @@ -311,7 +311,7 @@ fn ffi_utf8_panic() { r##" #[unsafe(no_mangle)] extern "C" fn ffi_invalid_utf8_cstr() -> *const core::ffi::c_char { - b"Invalid\xFFUTF8\x00".as_ptr() as *const _ + c"Invalid\xFFUTF8".as_ptr() } "##, );