Skip to content

Commit

Permalink
Add 83309
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Mar 26, 2021
1 parent e63970a commit ed17c93
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ices/83309.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
fn main() {
for v in Query.iter_mut() {
*v -= 1;
}
}

pub struct Query;
pub struct QueryIter<'a>(&'a i32);

impl Query {
pub fn iter_mut<'a>(&'a mut self) -> QueryIter<'a> {
todo!();
}
}

impl<'a> Iterator for QueryIter<'a> {
type Item = &'a i32;

fn next(&mut self) -> Option<Self::Item> {
todo!();
}
}

0 comments on commit ed17c93

Please sign in to comment.