3 #![feature(type_alias_impl_trait)]
5 use std::iter::{once, Chain};
7 type I<A> = Chain<A, impl Iterator<Item = &'static str>>;
8 fn test2<A: Iterator<Item = &'static str>>(x: A) -> I<A> {
13 assert_eq!(vec!["1", "3", "5"], test2(["1", "3"].iter().cloned()).collect::<Vec<_>>());