Skip to content

Commit 18adf5f

Browse files
committed
chore: update ui tests
Implementing `Step` for the `NonZero<u*>` changed the diagnostics from the compiler.
1 parent dfe9f8d commit 18adf5f

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

tests/ui/impl-trait/impl_trait_projections.stderr

+12-12
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ LL | -> <::std::ops::Range<impl Debug> as Iterator>::Item
3838
Char
3939
Ipv4Addr
4040
Ipv6Addr
41-
char
42-
i128
43-
i16
44-
i32
45-
i64
46-
and 8 others
41+
NonZero<u128>
42+
NonZero<u16>
43+
NonZero<u32>
44+
NonZero<u64>
45+
NonZero<u8>
46+
and 14 others
4747
= note: required for `std::ops::Range<impl Debug>` to implement `Iterator`
4848

4949
error[E0277]: the trait bound `impl Debug: Step` is not satisfied
@@ -59,12 +59,12 @@ LL | | }
5959
Char
6060
Ipv4Addr
6161
Ipv6Addr
62-
char
63-
i128
64-
i16
65-
i32
66-
i64
67-
and 8 others
62+
NonZero<u128>
63+
NonZero<u16>
64+
NonZero<u32>
65+
NonZero<u64>
66+
NonZero<u8>
67+
and 14 others
6868
= note: required for `std::ops::Range<impl Debug>` to implement `Iterator`
6969

7070
error: aborting due to 7 previous errors

tests/ui/range/range-1.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ LL | for i in false..true {}
1414
Char
1515
Ipv4Addr
1616
Ipv6Addr
17-
char
18-
i128
19-
i16
20-
i32
21-
i64
22-
and 8 others
17+
NonZero<u128>
18+
NonZero<u16>
19+
NonZero<u32>
20+
NonZero<u64>
21+
NonZero<u8>
22+
and 14 others
2323
= note: required for `std::ops::Range<bool>` to implement `Iterator`
2424
= note: required for `std::ops::Range<bool>` to implement `IntoIterator`
2525

0 commit comments

Comments
 (0)