summaryrefslogtreecommitdiffstats
path: root/tests/ui/illegal-ufcs-drop.rs
blob: 11411f55494c592d037e1db0131cdcdc97b0b758 (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::drop(&mut Foo) //~ ERROR explicit use of destructor method
}