2023-12-14 06:11:28 -06:00
|
|
|
// compile-flags: -Znext-solver
|
2023-03-27 14:41:15 -05:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
trait Iter<'a, I: 'a>: Iterator<Item = &'a I> {}
|
|
|
|
|
|
|
|
fn needs_iter<'a, T: Iter<'a, I> + ?Sized, I: 'a>(_: &T) {}
|
|
|
|
|
|
|
|
fn test(x: &dyn Iter<'_, ()>) {
|
|
|
|
needs_iter(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|