This website requires JavaScript.
Explore
Sign In
mirror
/
rust
mirror of
https://github.com/rust-lang/rust
Watch
1
Star
0
Fork
You've already forked rust
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
rust
/
tests
/
ui
/
rfcs
/
rfc-3348-c-string-literals
/
basic.rs
7 lines
102 B
Rust
Raw
Permalink
Blame
History
//@ run-pass
//@ edition: 2021
fn
main
(
)
{
assert_eq!
(
b
"
test
\0
"
,
c
"
test
"
.
to_bytes_with_nul
(
)
)
;
}
Reference in New Issue
View Git Blame
Copy Permalink