mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
17 lines
350 B
Rust
17 lines
350 B
Rust
//@ check-pass
|
|
|
|
fn main() {}
|
|
|
|
pub struct PairSlices<'a, 'b, T> {
|
|
pub(crate) a0: &'a mut [T],
|
|
pub(crate) a1: &'a mut [T],
|
|
pub(crate) b0: &'b [T],
|
|
pub(crate) b1: &'b [T],
|
|
}
|
|
|
|
impl<'a, 'b, T> PairSlices<'a, 'b, T> {
|
|
pub fn remainder(self) -> impl Iterator<Item = &'b [T]> {
|
|
IntoIterator::into_iter([self.b0, self.b1])
|
|
}
|
|
}
|