summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0040.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0040.stderr')
-rw-r--r--tests/ui/error-codes/E0040.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0040.stderr b/tests/ui/error-codes/E0040.stderr
new file mode 100644
index 000000000..9fcda1a93
--- /dev/null
+++ b/tests/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`.