Closed
Description
STR
#![crate_type = "lib"]
#![no_std]
trait Iterator {
type Item;
}
impl<'a, T> Iterator for &'a mut (Iterator<Item=T> + 'a) {
//~^ error: the type parameter `T` is not constrained by the impl trait, self type, or predicates
type Item = 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)
Version
rustc 1.0.0-nightly (ed530d7a3 2015-01-16 22:41:16 +0000)