This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
e53d6dd35b
rust
/
tests
/
ui
/
rfcs
/
rfc-3348-c-string-literals
/
basic.rs
7 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
reimplement C string literals
2023-07-16 18:59:05 +00:00
// run-pass
Revert the lexing of c_str_literals
2023-07-04 19:40:48 +02:00
// edition: 2021
update and add a few tests
2023-03-06 07:10:23 +00:00
fn
main
(
)
{
assert_eq!
(
b
"
test
\0
"
,
c
"
test
"
.
to_bytes_with_nul
(
)
)
;
}
Copy permalink