Skip to content

Commit 66b04c6

Browse files
authored
Rollup merge of rust-lang#88194 - spastorino:test-tait-assoc-impl-trait, r=oli-obk
Test use of impl Trait in an impl as the value for an associated type in an impl trait r? `@oli-obk` Related to rust-lang#86727
2 parents d6492b1 + dcfff23 commit 66b04c6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// check-pass
2+
3+
#![feature(type_alias_impl_trait)]
4+
#![allow(dead_code)]
5+
6+
type Foo = impl Iterator<Item = impl Send>;
7+
8+
fn make_foo() -> Foo {
9+
vec![1, 2].into_iter()
10+
}
11+
12+
type Bar = impl Send;
13+
type Baz = impl Iterator<Item = Bar>;
14+
15+
fn make_baz() -> Baz {
16+
vec!["1", "2"].into_iter()
17+
}
18+
19+
fn main() {}

0 commit comments

Comments
 (0)