]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/array-not-vector.rs
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / array-not-vector.rs
index 80b40ef25c3e0a48d361fb3fdea1ce9296c4f217..5e46f015baf6268e41070a4d214960ee3345118f 100644 (file)
@@ -1,14 +1,12 @@
 fn main() {
     let _x: i32 = [1, 2, 3];
     //~^ ERROR mismatched types
-    //~| expected type `i32`
-    //~| found type `[{integer}; 3]`
-    //~| expected i32, found array of 3 elements
+    //~| expected `i32`, found array
 
     let x: &[i32] = &[1, 2, 3];
     let _y: &i32 = x;
     //~^ ERROR mismatched types
-    //~| expected type `&i32`
-    //~| found type `&[i32]`
-    //~| expected i32, found slice
+    //~| expected reference `&i32`
+    //~| found reference `&[i32]`
+    //~| expected `i32`, found slice
 }