mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
12 lines
243 B
Rust
12 lines
243 B
Rust
// 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() {}
|