Skip to content

Commit eb16ae7

Browse files
committed
Use of impl trait in an impl as the valoe for an associated type in a dyn
1 parent a9ab2e5 commit eb16ae7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// check-pass
2+
3+
#![feature(type_alias_impl_trait)]
4+
#![allow(dead_code)]
5+
6+
type Foo = Box<dyn Iterator<Item = impl Send>>;
7+
8+
fn make_foo() -> Foo {
9+
Box::new(vec![1, 2, 3].into_iter())
10+
}
11+
12+
fn main() {}

0 commit comments

Comments
 (0)