fixup! Note numeric literals that can never fit in an expected type
This commit is contained in:
parent
d7277df3ac
commit
7a89a33823
1 changed files with 2 additions and 10 deletions
|
@ -40,11 +40,7 @@ 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
|
||||
|
@ -52,11 +48,7 @@ error[E0308]: mismatched types
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue