Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
issues
/
issue-6344-match.rs
blob: 4505a34c716c70e675d3b18c4b3d47962c90c944 [
file
] [
log
] [
blame
]
// 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
)
}
}
}