Skip to content

Commit

Permalink
Rollup merge of #88194 - spastorino:test-tait-assoc-impl-trait, r=oli…
Browse files Browse the repository at this point in the history
…-obk

Test use of impl Trait in an impl as the value for an associated type in an impl trait

r? `@oli-obk`

Related to #86727
  • Loading branch information
jackh726 authored Aug 22, 2021
2 parents d6492b1 + dcfff23 commit 66b04c6
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// check-pass

#![feature(type_alias_impl_trait)]
#![allow(dead_code)]

type Foo = impl Iterator<Item = impl Send>;

fn make_foo() -> Foo {
vec![1, 2].into_iter()
}

type Bar = impl Send;
type Baz = impl Iterator<Item = Bar>;

fn make_baz() -> Baz {
vec!["1", "2"].into_iter()
}

fn main() {}

0 comments on commit 66b04c6

Please sign in to comment.