Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
drop
/
drop-trait.rs
blob: d93f77180911c71701c783788f8122f425f6b111 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
struct
Foo
{
x
:
isize
}
impl
Drop
for
Foo
{
fn
drop
(&
mut
self
)
{
println
!(
"bye"
);
}
}
pub
fn
main
()
{
let
_x
:
Foo
=
Foo
{
x
:
3
};
}