rust/tests/ui/impl-trait/in-trait/outlives-in-nested-rpit.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
243 B
Rust
Raw Normal View History

// check-pass
#![feature(return_position_impl_trait_in_trait)]
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() {}