#![allow(dead_code, deprecated, unused_variables, unused_mut)] fn main() { assert_eq!(c"foo".to_bytes_with_nul(), b"foo\0"); }