Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-6344-match.rs
blob: 9251e274383da4bfef06d433dfd3ee5e5f01bac8 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
allow
(
non_shorthand_field_patterns
)]
struct
A
{
x
:
usize
}
impl
Drop
for
A
{
fn
drop
(&
mut
self
)
{}
}
pub
fn
main
()
{
let
a
=
A
{
x
:
0
};
match
a
{
A
{
x
:
ref
x
}
=>
{
println
!(
"{}"
,
x
)
}
}
}