We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 36d863b + 36a66c0 commit e1dc762Copy full SHA for e1dc762
src/subtyping.md
@@ -1,7 +1,7 @@
1
# Subtyping and Variance
2
3
Subtyping is implicit and can occur at any stage in type checking or
4
-inference. Subtyping in Rust is very restricted and occurs only due to
+inference. Subtyping is restricted to two cases:
5
variance with respect to lifetimes and between types with higher ranked
6
lifetimes. If we were to erase lifetimes from types, then the only subtyping
7
would be due to type equality.
0 commit comments