Skip to content

Commit f23003d

Browse files
committed
fix(test): update with &mut suggestion
1 parent 733bdd0 commit f23003d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/test/ui/issues/issue-20605.stderr

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
|
44
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`
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>`
912
note: required by `into_iter`
1013
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL

0 commit comments

Comments
 (0)