rust/tests/ui/impl-trait/in-trait/outlives-in-nested-rpit.rs
2023-10-13 21:01:36 +00:00

11 lines
194 B
Rust

// check-pass
trait Foo {
fn early<'a, T: 'a>(x: &'a T) -> impl Iterator<Item = impl Into<&'a T>>;
fn late<'a, T>(x: &'a T) -> impl Iterator<Item = impl Into<&'a T>>;
}
fn main() {}