update and add a few tests
This commit is contained in:
parent
8ff3903643
commit
76d1f93896
11 changed files with 48 additions and 3 deletions
7
tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs
Normal file
7
tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
// run-pass
|
||||
|
||||
#![feature(c_str_literals)]
|
||||
|
||||
fn main() {
|
||||
assert_eq!(b"test\0", c"test".to_bytes_with_nul());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue