Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
auxiliary
/
issue-2170-lib.rs
blob: a99385a834dfb5fb2e3b9371324ce414336ff8bd [
file
] [
log
] [
blame
] [
edit
]
fn
foo
(
_x
:
i32
)
{
}
pub
struct
rsrc
{
x
:
i32
,
}
impl
Drop
for
rsrc
{
fn
drop
(&
mut
self
)
{
foo
(
self
.
x
);
}
}
pub
fn
rsrc
(
x
:
i32
)
->
rsrc
{
rsrc
{
x
:
x
}
}