Use of impl trait in an impl as the valoe for an associated type in a dyn

上级 a9ab2e55
// check-pass
#![feature(type_alias_impl_trait)]
#![allow(dead_code)]
type Foo = Box<dyn Iterator<Item = impl Send>>;
fn make_foo() -> Foo {
Box::new(vec![1, 2, 3].into_iter())
}
fn main() {}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册