blob: 2b1c967ed1e070ca8e775c3ce76e39a64d4fbaf0 [file] [log] [blame]
//@ run-rustfix
#![allow(dropping_references)]
struct Foo;
impl Drop for Foo {
fn drop(&mut self) {}
}
fn main() {
drop(&mut Foo) //~ ERROR explicit use of destructor method
}