about summary refs log tree commit diff
path: root/src/test/ui/str/str-array-assignment.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/str/str-array-assignment.stderr')
-rw-r--r--src/test/ui/str/str-array-assignment.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/str/str-array-assignment.stderr b/src/test/ui/str/str-array-assignment.stderr
index ecd5fb44129..9f790d33659 100644
--- a/src/test/ui/str/str-array-assignment.stderr
+++ b/src/test/ui/str/str-array-assignment.stderr
@@ -6,8 +6,8 @@ LL |   let t = if true { s[..2] } else { s };
    |                     |
    |                     expected because of this
    |
-   = note: expected type `str`
-              found type `&str`
+   = note:   expected type `str`
+           found reference `&str`
 
 error[E0308]: mismatched types
   --> $DIR/str-array-assignment.rs:5:27
@@ -18,8 +18,8 @@ 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`
+   = note: expected reference `&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
@@ -43,8 +43,8 @@ LL |   let w: &str = s[..2];
    |                 expected &str, found str
    |                 help: consider borrowing here: `&s[..2]`
    |
-   = note: expected type `&str`
-              found type `str`
+   = note: expected reference `&str`
+                   found type `str`
 
 error: aborting due to 4 previous errors