]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/issue-69323.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-69323.rs
1 // check-pass
2
3 // revisions: min full
4 #![feature(min_type_alias_impl_trait)]
5 #![cfg_attr(full, feature(type_alias_impl_trait))]
6 //[full]~^ WARN incomplete
7
8 use std::iter::{once, Chain};
9
10 fn test1<A: Iterator<Item = &'static str>>(x: A) -> Chain<A, impl Iterator<Item = &'static str>> {
11 x.chain(once(","))
12 }
13
14 type I<A> = Chain<A, impl Iterator<Item = &'static str>>;
15 fn test2<A: Iterator<Item = &'static str>>(x: A) -> I<A> {
16 x.chain(once(","))
17 }
18
19 fn main() {}