File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ error[E0277]: the size for values of type `dyn Iterator<Item = &'a mut u8>` cann
22 --> $DIR/issue-20605.rs:2:17
33 |
44LL | for item in *things { *item = 0 }
5- | ^^^^^^^ doesn't have a size known at compile-time
5+ | ^^^^^^^
6+ | |
7+ | expected an implementor of trait `IntoIterator`
8+ | help: consider mutably borrowing here: `&mut *things`
69 |
7- = help : the trait `Sized` is not implemented for `dyn Iterator<Item = &'a mut u8>`
10+ = note : the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied
811 = note: required because of the requirements on the impl of `IntoIterator` for `dyn Iterator<Item = &'a mut u8>`
912note: required by `into_iter`
1013 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
You can’t perform that action at this time.
0 commit comments