Sign in
fuchsia
/
third_party
/
rust
/
e3029abfaec4252ab0ae7010780be0094d8870e0
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
empty_drop.fixed
blob: 17cfdcdc9c6854ef0a92a2195a75038976496564 [
file
] [
log
] [
blame
]
#![warn(clippy::empty_drop)]
#![allow(unused)]
// should cause an error
struct
Foo
;
// shouldn't cause an error
struct
Bar
;
impl
Drop
for
Bar
{
fn drop
(&
mut
self
)
{
println
!(
"dropping bar!"
);
}
}
// should error
struct
Baz
;
fn main
()
{}