2021-08-06 04:36:54 -05:00
|
|
|
// Regression test for #87549.
|
2021-09-19 11:57:19 -05:00
|
|
|
// incremental
|
2021-08-06 04:36:54 -05:00
|
|
|
|
|
|
|
pub struct Table<T, const N: usize>([Option<T>; N]);
|
|
|
|
|
|
|
|
impl<'a, T, const N: usize> IntoIterator for &'a Table<T, N> {
|
|
|
|
type IntoIter = std::iter::Flatten<std::slice::Iter<'a, T>>; //~ ERROR `&T` is not an iterator
|
|
|
|
type Item = &'a T;
|
|
|
|
|
|
|
|
fn into_iter(self) -> Self::IntoIter { //~ ERROR `&T` is not an iterator
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fn main() {}
|