rust/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
102 B
Rust
Raw Normal View History

2023-07-16 13:59:05 -05:00
//@ run-pass
2023-07-04 12:40:48 -05:00
//@ edition: 2021
2023-03-06 01:10:23 -06:00
fn main() {
assert_eq!(b"test\0", c"test".to_bytes_with_nul());
}