mirror of https://github.com/rust-lang/reference
Update src/subtyping.md
Co-authored-by: Ryan Scheel <Ryan.havvy@gmail.com>
This commit is contained in:
parent
72fea08918
commit
36a66c0ccf
|
@ -2,7 +2,7 @@
|
|||
|
||||
Subtyping is implicit and can occur at any stage in type checking or
|
||||
inference. Subtyping is restricted to two cases:
|
||||
variance with respect to lifetimes, and between types with higher ranked
|
||||
variance with respect to lifetimes and between types with higher ranked
|
||||
lifetimes. If we were to erase lifetimes from types, then the only subtyping
|
||||
would be due to type equality.
|
||||
|
||||
|
|
Loading…
Reference in New Issue