Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
explicit
/
explicit-call-to-dtor.rs
blob: a6f9acc37a16d688fa5d1b2bac134fc371159077 [
file
] [
log
] [
blame
]
struct
Foo
{
x
:
isize
}
impl
Drop
for
Foo
{
fn
drop
(&
mut
self
)
{
println
!(
"kaboom"
);
}
}
fn
main
()
{
let
x
=
Foo
{
x
:
3
};
x
.
drop
();
//~ ERROR explicit use of destructor method
}