You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm reading through the subtyping and variance chapter and the following text confused me:
Also, we saw that it was not ok for us to treat
`&mut &'a U` as a subtype of `&mut &'b U`,
therefore we can say that `&mut T` is *invariant* over `T`
Why is U introduced in the premise here and then not used in the conclusion? Shouldn't the premise just use T again, or if for some reason no, shouldn't the conclusion at least use U?
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
I'm reading through the subtyping and variance chapter and the following text confused me:
Why is U introduced in the premise here and then not used in the conclusion? Shouldn't the premise just use T again, or if for some reason no, shouldn't the conclusion at least use U?
The text was updated successfully, but these errors were encountered: