Skip to content

Commit

Permalink
Rollup merge of rust-lang#88192 - spastorino:add-tait-test-for-assoc-…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
jackh726 authored Aug 22, 2021
2 parents 73d9758 + eb16ae7 commit d6492b1
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit d6492b1

Please sign in to comment.