mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
16 lines
258 B
Rust
16 lines
258 B
Rust
//@ 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() {}
|