blob: 6330242ceebc24c73d06b1aabb3d8be7f33f3bad (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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() {}
|