about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-05-16 20:05:00 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-05-16 21:09:39 -0700
commitee0bf5e6aa7a964bb5c776adba0faad087a6a425 (patch)
tree5dd65d917cf7095a5740e36ec608c89b780e8ff0 /src/test
parent2cb91816f24a096a0760a49b6b4095309098e7f2 (diff)
downloadrust-ee0bf5e6aa7a964bb5c776adba0faad087a6a425.tar.gz
rust-ee0bf5e6aa7a964bb5c776adba0faad087a6a425.zip
review comments
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/issues/issue-47377.stderr2
-rw-r--r--src/test/ui/issues/issue-47380.stderr2
-rw-r--r--src/test/ui/span/issue-39018.stderr20
-rw-r--r--src/test/ui/str/str-concat-on-double-ref.stderr2
4 files changed, 13 insertions, 13 deletions
diff --git a/src/test/ui/issues/issue-47377.stderr b/src/test/ui/issues/issue-47377.stderr
index 88466131e31..7d11a8c8021 100644
--- a/src/test/ui/issues/issue-47377.stderr
+++ b/src/test/ui/issues/issue-47377.stderr
@@ -4,7 +4,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
 LL |      let _a = b + ", World!";
    |               - ^ ---------- &str
    |               | |
-   |               | `+` can't be used to concatenate two `&str` strings
+   |               | `+` cannot be used to concatenate two `&str` strings
    |               &str
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
diff --git a/src/test/ui/issues/issue-47380.stderr b/src/test/ui/issues/issue-47380.stderr
index d69101eab4c..89a154c5109 100644
--- a/src/test/ui/issues/issue-47380.stderr
+++ b/src/test/ui/issues/issue-47380.stderr
@@ -4,7 +4,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
 LL |     println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
    |                                      - ^ ---------- &str
    |                                      | |
-   |                                      | `+` can't be used to concatenate two `&str` strings
+   |                                      | `+` cannot be used to concatenate two `&str` strings
    |                                      &str
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
diff --git a/src/test/ui/span/issue-39018.stderr b/src/test/ui/span/issue-39018.stderr
index b174e95c8a1..cdb9c1168d8 100644
--- a/src/test/ui/span/issue-39018.stderr
+++ b/src/test/ui/span/issue-39018.stderr
@@ -4,7 +4,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
 LL |     let x = "Hello " + "World!";
    |             -------- ^ -------- &str
    |             |        |
-   |             |        `+` can't be used to concatenate two `&str` strings
+   |             |        `+` cannot be used to concatenate two `&str` strings
    |             &str
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
@@ -27,7 +27,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
 LL |     let x = "Hello " + "World!".to_owned();
    |             -------- ^ ------------------- std::string::String
    |             |        |
-   |             |        `+` can't be used to concatenate a `&str` with a `String`
+   |             |        `+` cannot be used to concatenate a `&str` with a `String`
    |             &str
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
@@ -40,7 +40,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
 LL |     let _ = &a + &b;
    |             -- ^ -- &std::string::String
    |             |  |
-   |             |  `+` can't be used to concatenate two `&str` strings
+   |             |  `+` cannot be used to concatenate two `&str` strings
    |             &std::string::String
 help: String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
@@ -53,7 +53,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
 LL |     let _ = &a + b;
    |             -- ^ - std::string::String
    |             |  |
-   |             |  `+` can't be used to concatenate a `&str` with a `String`
+   |             |  `+` cannot be used to concatenate a `&str` with a `String`
    |             &std::string::String
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
@@ -78,7 +78,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
 LL |     let _ = e + b;
    |             - ^ - std::string::String
    |             | |
-   |             | `+` can't be used to concatenate a `&str` with a `String`
+   |             | `+` cannot be used to concatenate a `&str` with a `String`
    |             &std::string::String
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
@@ -91,7 +91,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
 LL |     let _ = e + &b;
    |             - ^ -- &std::string::String
    |             | |
-   |             | `+` can't be used to concatenate two `&str` strings
+   |             | `+` cannot be used to concatenate two `&str` strings
    |             &std::string::String
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
@@ -104,7 +104,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
 LL |     let _ = e + d;
    |             - ^ - &str
    |             | |
-   |             | `+` can't be used to concatenate two `&str` strings
+   |             | `+` cannot be used to concatenate two `&str` strings
    |             &std::string::String
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
@@ -117,7 +117,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
 LL |     let _ = e + &d;
    |             - ^ -- &&str
    |             | |
-   |             | `+` can't be used to concatenate two `&str` strings
+   |             | `+` cannot be used to concatenate two `&str` strings
    |             &std::string::String
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
@@ -150,7 +150,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
 LL |     let _ = c + &d;
    |             - ^ -- &&str
    |             | |
-   |             | `+` can't be used to concatenate two `&str` strings
+   |             | `+` cannot be used to concatenate two `&str` strings
    |             &str
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
@@ -163,7 +163,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
 LL |     let _ = c + d;
    |             - ^ - &str
    |             | |
-   |             | `+` can't be used to concatenate two `&str` strings
+   |             | `+` cannot be used to concatenate two `&str` strings
    |             &str
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
diff --git a/src/test/ui/str/str-concat-on-double-ref.stderr b/src/test/ui/str/str-concat-on-double-ref.stderr
index 17d9475b9c0..3e53cdc4d98 100644
--- a/src/test/ui/str/str-concat-on-double-ref.stderr
+++ b/src/test/ui/str/str-concat-on-double-ref.stderr
@@ -4,7 +4,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
 LL |     let c = a + b;
    |             - ^ - &str
    |             | |
-   |             | `+` can't be used to concatenate two `&str` strings
+   |             | `+` cannot be used to concatenate two `&str` strings
    |             &std::string::String
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |