We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79a466c commit 66e9f74Copy full SHA for 66e9f74
text/0000-manually-drop.md
@@ -112,8 +112,8 @@ impl Drop for FruitBox {
112
// Explicit ordering in which field destructors are run specified in the intuitive
113
// location – the destructor of the structure containing the fields.
114
// Moreover, one can now reorder fields within the struct however much they want.
115
- peach.drop();
116
- banana.drop();
+ ManuallyDrop::drop(&mut self.peach);
+ ManuallyDrop::drop(&mut self.banana);
117
}
118
// After destructor for `FruitBox` runs (this function), the destructor for Melon gets
119
// invoked in the usual manner, as it is not wrapped in `ManuallyDrop`.
0 commit comments