Sign in
android
/
toolchain
/
rustc
/
951ae7a5eefab93734d1309f0497487f13f59fbf
/
.
/
tests
/
ui
/
consts
/
issue-34784.rs
blob: 98d943470a7f9ac05aa3e31abd1997fca5e3b7a5 [
file
] [
log
] [
blame
]
// run-pass
#![
warn
(
pointer_structural_match
)]
#![
allow
(
dead_code
)]
const
C
:
*
const
u8
=
&
0
;
fn
foo
(
x
:
*
const
u8
)
{
match
x
{
C
=>
{}
_
=>
{}
}
}
const
D
:
*
const
[
u8
;
4
]
=
b
"abcd"
;
fn
main
()
{
match
D
{
D
=>
{}
_
=>
{}
}
}