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 410a6fe commit 7c68850Copy full SHA for 7c68850
src/subtyping.md
@@ -171,8 +171,14 @@ longer lived things where shorted lived things are expected.
171
合理的であるからです。間接参照の段階が増えても、短く生きるものが求められている
172
場合により長く生きるものを渡せるようにするという願いは変わりません。
173
174
+<!--
175
However this logic doesn't apply to `&mut`. To see why `&mut` should
176
be invariant over T, consider the following code:
177
+-->
178
+
179
+しかしながら、この論理は `&mut` には適用できません。
180
+なぜ `&mut` が T において非変性であるべきかを確認するために、
181
+次のコードを考えてみましょう。
182
183
```rust,ignore
184
fn overwrite<T: Copy>(input: &mut T, new: &mut T) {
0 commit comments