blob: fddecfcacf68087a44f39e38c7c2e6d34597f132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// check-pass
#![feature(type_alias_impl_trait)]
#![allow(dead_code)]
type Foo = impl Iterator<Item = impl Send>;
fn make_foo() -> Foo {
vec![1, 2].into_iter()
}
type Bar = impl Send;
type Baz = impl Iterator<Item = Bar>;
fn make_baz() -> Baz {
vec!["1", "2"].into_iter()
}
fn main() {}
|