Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
cross-crate
/
auxiliary
/
moves_based_on_type_lib.rs
blob: 7e7e3b860242edc89f117bbfd9d86a44ad0af1f7 [
file
] [
log
] [
blame
]
#![
crate_type
=
"lib"
]
pub
struct
S
{
x
:
isize
,
}
impl
Drop
for
S
{
fn
drop
(&
mut
self
)
{
println
!(
"goodbye"
);
}
}
pub
fn
f
()
{
let
x
=
S
{
x
:
1
};
let
y
=
x
;
let
_z
=
y
;
}