about summary refs log tree commit diff
path: root/src/test/ui/repeat-expr
diff options
context:
space:
mode:
authorMiguel Guarniz <mi9uel9@gmail.com>2022-06-22 19:12:18 -0400
committerMiguel Guarniz <mi9uel9@gmail.com>2022-07-13 12:22:25 -0400
commitc6e7c0514f5b581fc5f6fcebcb803a28f7b51551 (patch)
treed2ad33868286d775b07a0895ca268ddbe54792de /src/test/ui/repeat-expr
parente11862f811990cda65dceab96adc67c3a2096aa5 (diff)
use gathered body_owners in par_body_owners
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
Diffstat (limited to 'src/test/ui/repeat-expr')
-rw-r--r--src/test/ui/repeat-expr/repeat_count.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/repeat-expr/repeat_count.stderr b/src/test/ui/repeat-expr/repeat_count.stderr
index 59bcd954a1f..e222c141f8b 100644
--- a/src/test/ui/repeat-expr/repeat_count.stderr
+++ b/src/test/ui/repeat-expr/repeat_count.stderr
@@ -31,6 +31,12 @@ 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
    |
 LL |     let f = [0; -4_isize];
@@ -57,12 +63,6 @@ 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
 
 Some errors have detailed explanations: E0308, E0435.