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
#![crate_type = "lib"]#![no_std]traitIterator{typeItem;}impl<'a,T>Iteratorfor&'amut(Iterator<Item=T> + 'a){//~^ error: the type parameter `T` is not constrained by the impl trait, self type, or predicatestypeItem = T;}
T appears in Self (the trait object assoc type binding) so it should be considered as constrained, and this impl should be accepted. (Also I don't how we could impl<'a> Iterator for &'a mut (Iterator + 'a) { type Item = ??? } without the T type parameter)