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