Skip to content

Commit 7a89a33

Browse files
committed
fixup! Note numeric literals that can never fit in an expected type
1 parent d7277df commit 7a89a33

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/test/ui/repeat_count.stderr

+2-10
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,15 @@ error[E0308]: mismatched types
4040
LL | let f = [0; -4_isize];
4141
| ^^^^^^^^ expected `usize`, found `isize`
4242
|
43-
note: `-4_isize` cannot fit into type `usize`
44-
--> $DIR/repeat_count.rs:19:17
45-
|
46-
LL | let f = [0; -4_isize];
47-
| ^^^^^^^^
43+
= note: `-4_isize` cannot fit into type `usize`
4844

4945
error[E0308]: mismatched types
5046
--> $DIR/repeat_count.rs:22:23
5147
|
5248
LL | let f = [0_usize; -1_isize];
5349
| ^^^^^^^^ expected `usize`, found `isize`
5450
|
55-
note: `-1_isize` cannot fit into type `usize`
56-
--> $DIR/repeat_count.rs:22:23
57-
|
58-
LL | let f = [0_usize; -1_isize];
59-
| ^^^^^^^^
51+
= note: `-1_isize` cannot fit into type `usize`
6052

6153
error[E0308]: mismatched types
6254
--> $DIR/repeat_count.rs:25:17

0 commit comments

Comments
 (0)