]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/coercion/coercion-slice.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / coercion / coercion-slice.stderr
index 6fa712371178b55b696c86143db193a843dd01e8..34caaed9de4f5bb79a44bc7217acfd60a7166426 100644 (file)
@@ -4,11 +4,8 @@ error[E0308]: mismatched types
 LL |     let _: &[i32] = [0];
    |                     ^^^
    |                     |
-   |                     expected &[i32], found array of 1 elements
+   |                     expected &[i32], found array `[{integer}; 1]`
    |                     help: consider borrowing here: `&[0]`
-   |
-   = note: expected type `&[i32]`
-              found type `[{integer}; 1]`
 
 error: aborting due to previous error