Skip to content

Commit 7c68850

Browse files
committed
Translate a paragraph
1 parent 410a6fe commit 7c68850

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/subtyping.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,14 @@ longer lived things where shorted lived things are expected.
171171
合理的であるからです。間接参照の段階が増えても、短く生きるものが求められている
172172
場合により長く生きるものを渡せるようにするという願いは変わりません。
173173

174+
<!--
174175
However this logic doesn't apply to `&mut`. To see why `&mut` should
175176
be invariant over T, consider the following code:
177+
-->
178+
179+
しかしながら、この論理は `&mut` には適用できません。
180+
なぜ `&mut` が T において非変性であるべきかを確認するために、
181+
次のコードを考えてみましょう。
176182

177183
```rust,ignore
178184
fn overwrite<T: Copy>(input: &mut T, new: &mut T) {

0 commit comments

Comments
 (0)