2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2023-08-08 00:28:17 +00:00
|
|
|
// issue: 114597
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ edition: 2021
|
2023-08-08 00:28:17 +00:00
|
|
|
|
|
|
|
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() {}
|