We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0602b87 commit efeaf82Copy full SHA for efeaf82
src/dropck.md
@@ -154,9 +154,14 @@ fn main() {
154
<anon>:15 }
155
```
156
157
+<!--
158
Implementing Drop lets the Inspector execute some arbitrary code during its
159
death. This means it can potentially observe that types that are supposed to
160
live as long as it does actually were destroyed first.
161
+-->
162
+
163
+Drop トレイトを実装することで、 Inspector が最後に任意のコードを実行するようにできます。
164
+これは、 Inspector と同じだけ生きる型が、実際には先に破棄されると潜在的に認識できます。
165
166
Interestingly, only generic types need to worry about this. If they aren't
167
generic, then the only lifetimes they can harbor are `'static`, which will truly
0 commit comments