]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-58951.rs
Rollup merge of #92715 - chordtoll:empty-string, r=davidtwco
[rust.git] / src / test / ui / type-alias-impl-trait / issue-58951.rs
1 // check-pass
2
3 #![feature(type_alias_impl_trait)]
4
5 type A = impl Iterator;
6
7 fn def_a() -> A {
8     0..1
9 }
10
11 pub fn use_a() {
12     def_a().map(|x| x);
13 }
14
15 fn main() {}