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
impl<T>Foofor[T]{fnfoo(self)whereSelf:Sized{unreachable!()}// Should disappear at compile-time.fnbar(&self){}}
This means that, for example, Iterator can't be implemented types that are known to be DSTs, only types that may be DSTs. This is an inconsistent and an unnecessary limitation.
The text was updated successfully, but these errors were encountered:
Basically, given:
The following is valid:
But the following isn't:
This means that, for example,
Iterator
can't be implemented types that are known to be DSTs, only types that may be DSTs. This is an inconsistent and an unnecessary limitation.The text was updated successfully, but these errors were encountered: