Skip to content

Commit eaa81e1

Browse files
committed
Translate a paragraph
1 parent ab25d71 commit eaa81e1

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
@@ -303,9 +303,15 @@ cell 型の非変性は次のように見ることが出来ます。すなわち
303303
なぜなら、 `&` を通して値を保存することも可能だからです。
304304
したがって、ライフタイムをこっそり導入することがないよう、 cell は非変性でなければなりません。
305305

306+
<!--
306307
`Fn` is the most subtle case because it has mixed variance. To see why
307308
`Fn(T) -> U` should be invariant over T, consider the following function
308309
signature:
310+
-->
311+
312+
`Fn` はまぜこぜの変性を持っているので、最も見分けのつかないケースです。
313+
なぜ `Fn(T) -> U` が T において非変性であるべきかを確認するために、
314+
次の関数シグネチャを考えてみましょう。
309315

310316
```rust,ignore
311317
// 'a is derived from some parent scope

0 commit comments

Comments
 (0)