1 // Check that we can specialize on a concrete iterator type. This requires us
2 // to consider which parameters in the parent impl are constrained.
6 #![feature(min_specialization)]
8 trait SpecFromIter<T> {
12 impl<'a, T: 'a, I: Iterator<Item = &'a T>> SpecFromIter<T> for I {
13 default fn f(&self) {}
16 impl<'a, T> SpecFromIter<T> for std::slice::Iter<'a, T> {