We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4a7a6 commit 72fea08Copy full SHA for 72fea08
src/subtyping.md
@@ -1,8 +1,8 @@
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
5
-variance with respect to lifetimes and between types with higher ranked
+inference. Subtyping is restricted to two cases:
+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.
8
0 commit comments