summaryrefslogtreecommitdiffstats
path: root/src/test/ui/illegal-ufcs-drop.fixed
blob: d73b391be06219a872336b2481b816ab295b294b (plain)
1
2
3
4
5
6
7
8
9
10
// run-rustfix
struct Foo;

impl Drop for Foo {
    fn drop(&mut self) {}
}

fn main() {
    drop(&mut Foo) //~ ERROR explicit use of destructor method
}