Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
empty_drop.fixed
blob: ec7ce480722572390fe35a48f82443bb39eceb04 [
file
]
#![warn(clippy::empty_drop)]
// 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
()
{}