diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/error-codes/E0040.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0040.stderr b/src/test/ui/error-codes/E0040.stderr new file mode 100644 index 000000000..9fcda1a93 --- /dev/null +++ b/src/test/ui/error-codes/E0040.stderr @@ -0,0 +1,12 @@ +error[E0040]: explicit use of destructor method + --> $DIR/E0040.rs:16:7 + | +LL | x.drop(); + | --^^^^-- + | | | + | | explicit destructor calls not allowed + | help: consider using `drop` function: `drop(x)` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0040`. |