rust/tests/ui/impl-trait/mapping-duplicated-lifetimes-issue-114597.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
258 B
Rust
Raw Normal View History

2023-08-08 00:28:17 +00:00
//@ 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() {}