summaryrefslogtreecommitdiff
path: root/tests/ui/illegal-ufcs-drop.fixed
blob: 8783682dec47d31fe96d3ee1ec163889fa5cfa20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-rustfix

#![allow(drop_ref)]

struct Foo;

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

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