blob: e41c806bd1e0db46adbba851434374640ef80ee2 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 | //! Test error for explicit destructor method calls via UFCS
//@ run-rustfix
#![allow(dropping_references)]
struct Foo;
impl Drop for Foo {
    fn drop(&mut self) {}
}
fn main() {
    Drop::drop(&mut Foo) //~ ERROR explicit use of destructor method
}
 |