Skip to content

Commit ed17c93

Browse files
committed
Add 83309
Issue: rust-lang/rust#83309
1 parent e63970a commit ed17c93

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

ices/83309.rs

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
fn main() {
2+
for v in Query.iter_mut() {
3+
*v -= 1;
4+
}
5+
}
6+
7+
pub struct Query;
8+
pub struct QueryIter<'a>(&'a i32);
9+
10+
impl Query {
11+
pub fn iter_mut<'a>(&'a mut self) -> QueryIter<'a> {
12+
todo!();
13+
}
14+
}
15+
16+
impl<'a> Iterator for QueryIter<'a> {
17+
type Item = &'a i32;
18+
19+
fn next(&mut self) -> Option<Self::Item> {
20+
todo!();
21+
}
22+
}

0 commit comments

Comments
 (0)