]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/array-not-vector.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / array-not-vector.stderr
index b5a5389db093a64ac8819749bbf65ec5ccb4d8fb..0e187d9072a8a512a51cf0cb439d7c1f4284b9e5 100644 (file)
@@ -2,19 +2,20 @@ error[E0308]: mismatched types
   --> $DIR/array-not-vector.rs:2:19
    |
 LL |     let _x: i32 = [1, 2, 3];
-   |                   ^^^^^^^^^ expected i32, found array of 3 elements
-   |
-   = note: expected type `i32`
-              found type `[{integer}; 3]`
+   |             ---   ^^^^^^^^^ expected `i32`, found array `[{integer}; 3]`
+   |             |
+   |             expected due to this
 
 error[E0308]: mismatched types
-  --> $DIR/array-not-vector.rs:9:20
+  --> $DIR/array-not-vector.rs:7:20
    |
 LL |     let _y: &i32 = x;
-   |                    ^ expected i32, found slice
+   |             ----   ^ expected `i32`, found slice `[i32]`
+   |             |
+   |             expected due to this
    |
-   = note: expected type `&i32`
-              found type `&[i32]`
+   = note: expected reference `&i32`
+              found reference `&[i32]`
 
 error: aborting due to 2 previous errors