]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-15783.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / issues / issue-15783.stderr
index 1d54b2830d6c5b6b87470c54e87aca9edb311ae2..74a96df5b1b0fa4e339a1a565d28a31863b30b2c 100644 (file)
@@ -2,10 +2,10 @@ error[E0308]: mismatched types
   --> $DIR/issue-15783.rs:8:19
    |
 LL |     let msg = foo(x);
-   |                   ^ expected slice, found array of 1 element
+   |                   ^ expected slice `[&str]`, found array `[&str; 1]`
    |
-   = note: expected type `std::option::Option<&[&str]>`
-              found type `std::option::Option<&[&str; 1]>`
+   = note: expected enum `std::option::Option<&[&str]>`
+              found enum `std::option::Option<&[&str; 1]>`
 
 error: aborting due to previous error