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
2
2
--> $DIR/issue-20605.rs:2:17
3
3
|
4
4
LL | 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`
6
9
|
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
8
11
= note: required because of the requirements on the impl of `IntoIterator` for `dyn Iterator<Item = &'a mut u8>`
9
12
note: required by `into_iter`
10
13
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
You can’t perform that action at this time.
0 commit comments