Skip to content

Commit

Permalink
fixup! Note numeric literals that can never fit in an expected type
Browse files Browse the repository at this point in the history
  • Loading branch information
ayazhafiz committed Jun 17, 2020
1 parent d7277df commit 7a89a33
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/test/ui/repeat_count.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,15 @@ error[E0308]: mismatched types
LL | let f = [0; -4_isize];
| ^^^^^^^^ expected `usize`, found `isize`
|
note: `-4_isize` cannot fit into type `usize`
--> $DIR/repeat_count.rs:19:17
|
LL | let f = [0; -4_isize];
| ^^^^^^^^
= note: `-4_isize` cannot fit into type `usize`

error[E0308]: mismatched types
--> $DIR/repeat_count.rs:22:23
|
LL | let f = [0_usize; -1_isize];
| ^^^^^^^^ expected `usize`, found `isize`
|
note: `-1_isize` cannot fit into type `usize`
--> $DIR/repeat_count.rs:22:23
|
LL | let f = [0_usize; -1_isize];
| ^^^^^^^^
= note: `-1_isize` cannot fit into type `usize`

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

0 comments on commit 7a89a33

Please sign in to comment.