#![allow(dead_code, deprecated, unused_variables, unused_mut)] use std::ffi::{CStr, FromBytesWithNulError}; fn main() { let _: FromBytesWithNulError = CStr::from_bytes_with_nul(b"f\0oo").unwrap_err(); }