use C-string literal

Co-authored-by: Bennet Bleßmann <3877590+Skgland@users.noreply.github.com>
This commit is contained in:
Thierry M.
2026-03-04 15:01:23 +01:00
committed by GitHub
parent 4bd0ff0fcb
commit e00112b92f

View File

@@ -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()
}
"##,
);