Skip to content

Commit efeaf82

Browse files
committed
Translate a paragraph
1 parent 0602b87 commit efeaf82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dropck.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,14 @@ fn main() {
154154
<anon>:15 }
155155
```
156156

157+
<!--
157158
Implementing Drop lets the Inspector execute some arbitrary code during its
158159
death. This means it can potentially observe that types that are supposed to
159160
live as long as it does actually were destroyed first.
161+
-->
162+
163+
Drop トレイトを実装することで、 Inspector が最後に任意のコードを実行するようにできます。
164+
これは、 Inspector と同じだけ生きる型が、実際には先に破棄されると潜在的に認識できます。
160165

161166
Interestingly, only generic types need to worry about this. If they aren't
162167
generic, then the only lifetimes they can harbor are `'static`, which will truly

0 commit comments

Comments
 (0)