#![allow(unused_variables)] fn main() { use std::ffi::{CString, FromVecWithNulError}; let _: FromVecWithNulError = CString::from_vec_with_nul(b"f\0oo".to_vec()) .unwrap_err(); }