about summary refs log tree commit diff
path: root/src/test/ui/suggestions
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-07-11 10:02:00 +0200
committerGitHub <noreply@github.com>2018-07-11 10:02:00 +0200
commitc606ed74c380f512feaaa0a864e09bdee51f3f81 (patch)
tree019ecf6778b6a21006408f5a5671c55adf31218b /src/test/ui/suggestions
parent13c5f606c6c734b0e9d233970fb5e306fb733754 (diff)
parentb8c96ce530227c345908bddd91e0380d9a206e06 (diff)
downloadrust-c606ed74c380f512feaaa0a864e09bdee51f3f81.tar.gz
rust-c606ed74c380f512feaaa0a864e09bdee51f3f81.zip
Rollup merge of #52231 - lqd:error_mesg, r=GuillaumeGomez
Fix typo in error message E0277

Fix a typo we stumbled upon by accident :)

r? @estebank
Diffstat (limited to 'src/test/ui/suggestions')
-rw-r--r--src/test/ui/suggestions/str-array-assignment.rs2
-rw-r--r--src/test/ui/suggestions/str-array-assignment.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/suggestions/str-array-assignment.rs b/src/test/ui/suggestions/str-array-assignment.rs
index 8fbab402232..9d6cf5fe598 100644
--- a/src/test/ui/suggestions/str-array-assignment.rs
+++ b/src/test/ui/suggestions/str-array-assignment.rs
@@ -15,7 +15,7 @@ fn main() {
   let u: &str = if true { s[..2] } else { s };
   //~^ ERROR mismatched types
   let v = s[..2];
-  //~^ ERROR the size for value values of type
+  //~^ ERROR the size for values of type
   let w: &str = s[..2];
   //~^ ERROR mismatched types
 }
diff --git a/src/test/ui/suggestions/str-array-assignment.stderr b/src/test/ui/suggestions/str-array-assignment.stderr
index 5af936eec5b..e0576cee8f5 100644
--- a/src/test/ui/suggestions/str-array-assignment.stderr
+++ b/src/test/ui/suggestions/str-array-assignment.stderr
@@ -19,7 +19,7 @@ LL |   let u: &str = if true { s[..2] } else { s };
    = note: expected type `&str`
               found type `str`
 
-error[E0277]: the size for value values of type `str` cannot be known at compilation time
+error[E0277]: the size for values of type `str` cannot be known at compilation time
   --> $DIR/str-array-assignment.rs:17:7
    |
 LL |   let v = s[..2];