9 lines
278 B
Rust
9 lines
278 B
Rust
//@ known-bug: #118403
|
|
#![feature(generic_const_exprs)]
|
|
pub struct X<const N: usize> {}
|
|
impl<const Z: usize> X<Z> {
|
|
pub fn y<'a, U: 'a>(&'a self) -> impl Iterator<Item = impl Iterator<Item = [u8; Z]> + '_> {
|
|
(0..1).map(move |_| (0..1).map(move |_| loop {}))
|
|
}
|
|
}
|