Skip to content

Commit e1dc762

Browse files
authored
Merge pull request #1240 from pierwill/patch-1
Update subtyping.md
2 parents 36d863b + 36a66c0 commit e1dc762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subtyping.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Subtyping and Variance
22

33
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
4+
inference. Subtyping is restricted to two cases:
55
variance with respect to lifetimes and between types with higher ranked
66
lifetimes. If we were to erase lifetimes from types, then the only subtyping
77
would be due to type equality.

0 commit comments

Comments
 (0)