1 It is not allowed to manually call destructors in Rust.
3 Erroneous code example:
17 let mut x = Foo { x: -7 };
18 x.drop(); // error: explicit use of destructor method
22 It is unnecessary to do this since `drop` is called automatically whenever a
23 value goes out of scope. However, if you really need to drop a value by hand,
24 you can use the `std::mem::drop` function:
36 let mut x = Foo { x: -7 };