3 #![feature(type_alias_impl_trait)]
5 use std::iter::{once, Chain};
7 fn test1<A: Iterator<Item = &'static str>>(x: A) -> Chain<A, impl Iterator<Item = &'static str>> {
11 type I<A> = Chain<A, impl Iterator<Item = &'static str>>;
12 fn test2<A: Iterator<Item = &'static str>>(x: A) -> I<A> {