Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-6344-let.rs
blob: 1e1bdfa17bed2b53fe70a38903c95c8442a322b9 [
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
};
let
A
{
x
:
ref
x
}
=
a
;
println
!(
"{}"
,
x
)
}