Skip to content

Commit

Permalink
add'l test
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Aug 8, 2023
1 parent ef2a611 commit 0adf704
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/ui/impl-trait/mapping-duplicated-lifetimes-issue-114597.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// check-pass
// issue: 114597
// edition: 2021

struct A<'a> {
dat: &'a (),
}

impl<'a> A<'a> {
async fn a(&self) -> impl Iterator<Item = std::iter::Repeat<()>> {
std::iter::repeat(()).map(|()| std::iter::repeat(()))
}
}

fn main() {}

0 comments on commit 0adf704

Please sign in to comment.