]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-20605.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-20605.stderr
CommitLineData
1b1a35ee 1error[E0277]: the size for values of type `dyn Iterator<Item = &'a mut u8>` cannot be known at compilation time
0731742a 2 --> $DIR/issue-20605.rs:2:17
8faf50e0
XL
3 |
4LL | for item in *things { *item = 0 }
f2b60f7d 5 | ^^^^^^^ the trait `IntoIterator` is not implemented for `dyn Iterator<Item = &'a mut u8>`
8faf50e0 6 |
c295e0f8 7 = note: the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied
f2b60f7d 8 = note: required for `dyn Iterator<Item = &'a mut u8>` to implement `IntoIterator`
c295e0f8
XL
9help: consider mutably borrowing here
10 |
11LL | for item in &mut *things { *item = 0 }
12 | ++++
8faf50e0
XL
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0277`.