]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/repeat_count.stderr
Rollup merge of #94577 - RalfJung:simd-miri, r=scottmcm
[rust.git] / src / test / ui / repeat_count.stderr
index e90754e9118d25e9e5728441630e087e22c1e066..59bcd954a1fde235c20e3c4d83b06e7dd7feca44 100644 (file)
@@ -30,12 +30,6 @@ error[E0308]: mismatched types
 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
    |
@@ -61,7 +55,13 @@ LL |     let f = [0; 4u8];
 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