rust/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs
2024-02-16 20:02:50 +00:00

7 lines
102 B
Rust

//@ run-pass
//@ edition: 2021
fn main() {
assert_eq!(b"test\0", c"test".to_bytes_with_nul());
}