2023-05-02 10:30:09 +00:00

8 lines
112 B
Rust

// run-pass
#![feature(c_str_literals)]
fn main() {
assert_eq!(b"test\0", c"test".to_bytes_with_nul());
}