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 e40136f commit 193ab27Copy full SHA for 193ab27
src/subtyping.md
@@ -149,9 +149,15 @@ several examples.
149
150
これらの変性がなぜ正しくそして望ましいかを理解するために、いくつかの例を考えましょう。
151
152
+<!--
153
We have already covered why `&'a T` should be variant over `'a` when
154
introducing subtyping: it's desirable to be able to pass longer-lived things
155
where shorter-lived things are needed.
156
+-->
157
+
158
+派生型を導入するときに、なぜ `&'a T` が `'a` において変性であるべきか、既にカバーしました。
159
+これは、短く生きるものが必要なときに、より長く生きるものを渡せるようにするために、
160
+望ましいものなのです。
161
162
Similar reasoning applies to why it should be variant over T. It is reasonable
163
to be able to pass `&&'static str` where an `&&'a str` is expected. The
0 commit comments