LL | let e = [0; "foo"];
| ^^^^^ expected `usize`, found `&str`
-error[E0308]: mismatched types
- --> $DIR/repeat_count.rs:31:17
- |
-LL | let g = [0; G { g: () }];
- | ^^^^^^^^^^^ expected `usize`, found struct `G`
-
error[E0308]: mismatched types
--> $DIR/repeat_count.rs:19:17
|
help: change the type of the numeric literal from `u8` to `usize`
|
LL | let f = [0; 4usize];
- | ~~~~~~
+ | ~~~~~
+
+error[E0308]: mismatched types
+ --> $DIR/repeat_count.rs:31:17
+ |
+LL | let g = [0; G { g: () }];
+ | ^^^^^^^^^^^ expected `usize`, found struct `G`
error: aborting due to 9 previous errors