2 // Test a case where the associated type binding (to `bool`, in this
3 // case) is derived from the trait definition. Issue #21636.
9 type Iter: Iterator<Item=bool>;
10 fn bit_iter(self) -> <Self as BitIter>::Iter;
13 impl BitIter for Vec<bool> {
14 type Iter = vec::IntoIter<bool>;
15 fn bit_iter(self) -> <Self as BitIter>::Iter {
20 fn count<T>(arg: T) -> usize
24 for i in arg.bit_iter() {
33 let v = vec![true, false, true];