3 // revisions: min_tait full_tait
4 #![feature(min_type_alias_impl_trait)]
5 #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
6 //[full_tait]~^ WARN incomplete
8 use std::iter::{once, Chain};
10 type I<A> = Chain<A, impl Iterator<Item = &'static str>>;
11 fn test2<A: Iterator<Item = &'static str>>(x: A) -> I<A> {
16 assert_eq!(vec!["1", "3", "5"], test2(["1", "3"].iter().cloned()).collect::<Vec<_>>());