Sign in
fuchsia
/
third_party
/
rust
/
4ecd94e1215882efde5f003c0042bd72a5f8acb2
/
.
/
src
/
test
/
ui
/
issues
/
auxiliary
/
issue-29485.rs
blob: 1e8891c51206f25f34f16a7065005d5809ed8fe3 [
file
] [
log
] [
blame
]
#![
crate_name
=
"a"
]
#![
crate_type
=
"lib"
]
pub
struct
X
(
pub
u8
);
impl
Drop
for
X
{
fn
drop
(&
mut
self
)
{
assert_eq
!(
self
.
0
,
1
)
}
}
pub
fn
f
(
x
:
&
mut
X
,
g
:
fn
())
{
x
.
0
=
1
;
g
();
x
.
0
=
0
;
}