// Regression test for #100143 use std::iter::Peekable; pub struct Span { inner: Peekable>, } pub struct ConditionalIterator { f: F, } // @has 'fn_bound/struct.ConditionalIterator.html' '//h3[@class="code-header in-band"]' 'impl Iterator for ConditionalIterator' impl Iterator for ConditionalIterator { type Item = (); fn next(&mut self) -> Option { todo!() } }