Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
23
tests/ui/impl-trait/nested-rpit-with-anonymous-lifetimes.rs
Normal file
23
tests/ui/impl-trait/nested-rpit-with-anonymous-lifetimes.rs
Normal file
|
@ -0,0 +1,23 @@
|
|||
// check-pass
|
||||
|
||||
pub struct VecNumber<'s> {
|
||||
pub vec_number: Vec<Number<'s>>,
|
||||
pub auxiliary_object: &'s Vec<usize>,
|
||||
}
|
||||
|
||||
pub struct Number<'s> {
|
||||
pub number: &'s usize,
|
||||
}
|
||||
|
||||
impl<'s> VecNumber<'s> {
|
||||
pub fn vec_number_iterable_per_item_in_auxiliary_object(
|
||||
&self,
|
||||
) -> impl Iterator<Item = (&'s usize, impl Iterator<Item = &Number<'s>>)> {
|
||||
self.auxiliary_object.iter().map(move |n| {
|
||||
let iter_number = self.vec_number.iter();
|
||||
(n, iter_number)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue