Skip to content

Commit e18e7d2

Browse files
Revert the tests that shouldn't change. Will squash.
1 parent abdd60a commit e18e7d2

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

tests/ui/suggestions/slice-issue-87994.stderr

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ error[E0277]: `[i32]` is not an iterator
1717
--> $DIR/slice-issue-87994.rs:3:12
1818
|
1919
LL | 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`
2425
help: consider borrowing here
2526
|
2627
LL | for _ in &v[1..] {
@@ -47,10 +48,11 @@ error[E0277]: `[K]` is not an iterator
4748
--> $DIR/slice-issue-87994.rs:11:13
4849
|
4950
LL | 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`
5456
help: consider borrowing here
5557
|
5658
LL | for i2 in &v2[1..] {

tests/ui/traits/dyn-iterator-deref-in-for-loop.current.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
|
44
LL | 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`

tests/ui/traits/dyn-iterator-deref-in-for-loop.next.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
|
44
LL | 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`

0 commit comments

Comments
 (0)