summaryrefslogtreecommitdiffstats
path: root/src/test/ui/explicit/explicit-call-to-dtor.stderr
blob: f3c9bf6cccdd3f14bee0b8096dbc0963c7ea3bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0040]: explicit use of destructor method
  --> $DIR/explicit-call-to-dtor.rs:15: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`.