diff options
| author | Stanislav Tkach <stanislav.tkach@gmail.com> | 2020-05-20 17:48:21 +0300 |
|---|---|---|
| committer | Stanislav Tkach <stanislav.tkach@gmail.com> | 2020-05-21 16:21:02 +0300 |
| commit | 34b51187ce8fa261ebe3bef4a9a26135b919ac02 (patch) | |
| tree | 4f22edf477054b18aa1c999694b474a2d669f145 /src/test/ui/error-codes | |
| parent | 672b272077561ca7b5027a8aff9ea2957c7d4c21 (diff) | |
| download | rust-34b51187ce8fa261ebe3bef4a9a26135b919ac02.tar.gz rust-34b51187ce8fa261ebe3bef4a9a26135b919ac02.zip | |
Suggest using std::mem::drop function instead of explicit destructor call
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0040.stderr | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/ui/error-codes/E0040.stderr b/src/test/ui/error-codes/E0040.stderr index 96645590281..69cf28b2970 100644 --- a/src/test/ui/error-codes/E0040.stderr +++ b/src/test/ui/error-codes/E0040.stderr @@ -2,7 +2,10 @@ error[E0040]: explicit use of destructor method --> $DIR/E0040.rs:13:7 | LL | x.drop(); - | ^^^^ explicit destructor calls not allowed + | ^^^^ + | | + | explicit destructor calls not allowed + | help: consider using `drop` function: `drop(x)` error: aborting due to previous error |
