rust/src/test/ui/explicit/explicit-call-to-dtor.stderr

10 lines
321 B
Plaintext

error[E0040]: explicit use of destructor method
--> $DIR/explicit-call-to-dtor.rs:23:7
|
LL | x.drop(); //~ ERROR explicit use of destructor method
| ^^^^ explicit destructor calls not allowed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0040`.