Sign in
android
/
toolchain
/
rustc
/
cd1aefd586783f162dd848e314bd6991a5ffe033
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
crashes
/
ice-4579.rs
blob: 2e7e279f847dd28f11cead520f004d2f09998018 [
file
] [
log
] [
blame
]
#![
allow
(
clippy
::
single_match
)]
use
std
::
ptr
;
fn
main
()
{
match
Some
(
0
_usize
)
{
Some
(
_
)
=>
{
let
s
=
"012345"
;
unsafe
{
ptr
::
read
(
s
.
as_ptr
().
offset
(
1
)
as
*
const
[
u8
;
5
])
};
},
_
=>
(),
};
}