Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-6344-let.rs
blob: a7b6a2e2d66782033f8f83efbaca5e2a76b68309 [
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
};
let
A
{
x
:
ref
x
}
=
a
;
println
!(
"{}"
,
x
)
}