File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ error[E0277]: `[i32]` is not an iterator
1717 --> $DIR/slice-issue-87994.rs:3:12
1818 |
1919LL | for _ in v[1..] {
20- | ^^^^^^ the trait `Sized ` is not implemented for `[i32]`
20+ | ^^^^^^ the trait `IntoIterator ` is not implemented for `[i32]`
2121 |
2222 = note: the trait bound `[i32]: IntoIterator` is not satisfied
2323 = note: required for `[i32]` to implement `IntoIterator`
24+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
2425help: consider borrowing here
2526 |
2627LL | for _ in &v[1..] {
@@ -47,10 +48,11 @@ error[E0277]: `[K]` is not an iterator
4748 --> $DIR/slice-issue-87994.rs:11:13
4849 |
4950LL | for i2 in v2[1..] {
50- | ^^^^^^^ the trait `Sized ` is not implemented for `[K]`
51+ | ^^^^^^^ the trait `IntoIterator ` is not implemented for `[K]`
5152 |
5253 = note: the trait bound `[K]: IntoIterator` is not satisfied
5354 = note: required for `[K]` to implement `IntoIterator`
55+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
5456help: consider borrowing here
5557 |
5658LL | for i2 in &v2[1..] {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error[E0277]: `dyn Iterator<Item = &'a mut u8>` is not an iterator
22 --> $DIR/dyn-iterator-deref-in-for-loop.rs:9:17
33 |
44LL | for item in *things {
5- | ^^^^^^^ the trait `Sized ` is not implemented for `dyn Iterator<Item = &'a mut u8>`
5+ | ^^^^^^^ the trait `IntoIterator ` is not implemented for `dyn Iterator<Item = &'a mut u8>`
66 |
77 = note: the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied
88 = note: required for `dyn Iterator<Item = &'a mut u8>` to implement `IntoIterator`
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error[E0277]: `dyn Iterator<Item = &'a mut u8>` is not an iterator
22 --> $DIR/dyn-iterator-deref-in-for-loop.rs:9:17
33 |
44LL | for item in *things {
5- | ^^^^^^^ the trait `Sized ` is not implemented for `dyn Iterator<Item = &'a mut u8>`
5+ | ^^^^^^^ the trait `IntoIterator ` is not implemented for `dyn Iterator<Item = &'a mut u8>`
66 |
77 = note: the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied
88 = note: required for `dyn Iterator<Item = &'a mut u8>` to implement `IntoIterator`
You can’t perform that action at this time.
0 commit comments