1
Fork 0

Rollup merge of #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 #86727
This commit is contained in:
Jack Huey 2021-08-21 20:56:36 -04:00 committed by GitHub
commit d6492b13d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,12 @@
// 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() {}