Skip to content

Commit d6492b1

Browse files
authored
Rollup merge of rust-lang#88192 - spastorino:add-tait-test-for-assoc-dyn, r=oli-obk
Use of impl trait in an impl as the value for an associated type in a dyn r? `@oli-obk` Related to rust-lang#86727
2 parents 73d9758 + eb16ae7 commit d6492b1

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)