Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
tests
/
ui
/
rfcs
/
rfc-3348-c-string-literals
/
non-ascii.rs
blob: 380445d7a7fb98a5599b85a71b9f2b7fb649ce01 [
file
] [
log
] [
blame
]
// run-pass
// edition: 2021
#![
feature
(
c_str_literals
)]
fn
main
()
{
assert_eq
!(
c
"\xEF\x80🦀\u{1F980}"
.
to_bytes_with_nul
(),
&[
0xEF
,
0x80
,
0xF0
,
0x9F
,
0xA6
,
0x80
,
0xF0
,
0x9F
,
0xA6
,
0x80
,
0x00
],
);
}