]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lazy-type-alias-impl-trait/unsized_sized_opaque.rs
Rollup merge of #100479 - compiler-errors:argument-type-error-improvements, r=lcnr
[rust.git] / src / test / ui / lazy-type-alias-impl-trait / unsized_sized_opaque.rs
1 // check-pass
2
3 fn main() {}
4
5 pub struct PairSlices<'a, 'b, T> {
6     pub(crate) a0: &'a mut [T],
7     pub(crate) a1: &'a mut [T],
8     pub(crate) b0: &'b [T],
9     pub(crate) b1: &'b [T],
10 }
11
12 impl<'a, 'b, T> PairSlices<'a, 'b, T> {
13     pub fn remainder(self) -> impl Iterator<Item = &'b [T]> {
14         IntoIterator::into_iter([self.b0, self.b1])
15     }
16 }