]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/str/str-array-assignment.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / str / str-array-assignment.stderr
index 87809d212d79dd4e6b31b19c053b30ed43c80541..e8678b439d4a041066e17c6e5c255e4d00cf8947 100644 (file)
@@ -5,9 +5,6 @@ LL |   let t = if true { s[..2] } else { s };
    |                     ------          ^ expected str, found &str
    |                     |
    |                     expected because of this
-   |
-   = note: expected type `str`
-              found type `&str`
 
 error[E0308]: mismatched types
   --> $DIR/str-array-assignment.rs:5:27
@@ -17,9 +14,6 @@ LL |   let u: &str = if true { s[..2] } else { s };
    |                           |
    |                           expected &str, found str
    |                           help: consider borrowing here: `&s[..2]`
-   |
-   = note: expected type `&str`
-              found type `str`
 
 error[E0277]: the size for values of type `str` cannot be known at compilation time
   --> $DIR/str-array-assignment.rs:7:7
@@ -42,11 +36,8 @@ LL |   let w: &str = s[..2];
    |                 |
    |                 expected &str, found str
    |                 help: consider borrowing here: `&s[..2]`
-   |
-   = note: expected type `&str`
-              found type `str`
 
 error: aborting due to 4 previous errors
 
-Some errors occurred: E0277, E0308.
+Some errors have detailed explanations: E0277, E0308.
 For more information about an error, try `rustc --explain E0277`.