mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
13 lines
227 B
Rust
13 lines
227 B
Rust
//@ compile-flags: -Znext-solver
|
|
//@ 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() {}
|