2022-08-08 21:09:55 +00:00
|
|
|
// Regression test for #100143
|
|
|
|
|
2022-08-06 17:42:52 +00:00
|
|
|
use std::iter::Peekable;
|
|
|
|
|
|
|
|
pub struct Span<F: Fn(&i32)> {
|
|
|
|
inner: Peekable<ConditionalIterator<F>>,
|
|
|
|
}
|
|
|
|
|
2022-08-08 19:09:09 +00:00
|
|
|
pub struct ConditionalIterator<F> {
|
2022-08-06 17:42:52 +00:00
|
|
|
f: F,
|
|
|
|
}
|
|
|
|
|
2022-08-08 19:09:09 +00:00
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has 'fn_bound/struct.ConditionalIterator.html' '//h3[@class="code-header"]' 'impl<F: Fn(&i32)> Iterator for ConditionalIterator<F>'
|
2022-08-06 17:42:52 +00:00
|
|
|
impl<F: Fn(&i32)> Iterator for ConditionalIterator<F> {
|
|
|
|
type Item = ();
|
|
|
|
|
|
|
|
fn next(&mut self) -> Option<Self::Item> {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
}
|