Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
rfcs
/
rfc-3348-c-string-literals
/
non-ascii.rs
blob: 4b18fa39743612600468367a55d44ec285dbc85b [
file
] [
log
] [
blame
] [
edit
]
//@ 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
],
);
}