Debian Codegraph @

tests/pass/byte_str_lit.rs

raw symbols SCIP
1 use cstr::cstr;
2 use std::ffi::CStr;
3
4 fn main() {
5 let foo: &'static CStr = cstr!(b"foo\xffbar");
6 assert_eq!(foo, CStr::from_bytes_with_nul(b"foo\xffbar\0").unwrap());
7 }