]> git.lizzy.rs Git - rust.git/blob - src/test/ui/explicit/explicit-call-to-dtor.stderr
Merge commit 'd0cf3481a84e3aa68c2f185c460e282af36ebc42' into clippyup
[rust.git] / src / test / ui / explicit / explicit-call-to-dtor.stderr
1 error[E0040]: explicit use of destructor method
2   --> $DIR/explicit-call-to-dtor.rs:15:7
3    |
4 LL |     x.drop();
5    |     --^^^^--
6    |     | |
7    |     | explicit destructor calls not allowed
8    |     help: consider using `drop` function: `drop(x)`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0040`.