about summary refs log tree commit diff
path: root/src/test/ui/span
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-11-16 16:36:49 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-11-16 16:36:49 +0100
commit47c7e430d35fc5b49b36d2fb5b5a75497059b05b (patch)
treea70915b851a69126eaf997066d83fad90032564d /src/test/ui/span
parentc81f201d48c4f25d32f8b0f76103c9f794d37851 (diff)
downloadrust-47c7e430d35fc5b49b36d2fb5b5a75497059b05b.tar.gz
rust-47c7e430d35fc5b49b36d2fb5b5a75497059b05b.zip
Remove left over dead code from suggestion diagnostic refactoring
Diffstat (limited to 'src/test/ui/span')
-rw-r--r--src/test/ui/span/issue-35987.stderr1
-rw-r--r--src/test/ui/span/issue-39018.stderr1
-rw-r--r--src/test/ui/span/missing-unit-argument.stderr4
3 files changed, 0 insertions, 6 deletions
diff --git a/src/test/ui/span/issue-35987.stderr b/src/test/ui/span/issue-35987.stderr
index b57b58e3d2a..5e7a492ca2a 100644
--- a/src/test/ui/span/issue-35987.stderr
+++ b/src/test/ui/span/issue-35987.stderr
@@ -3,7 +3,6 @@ error[E0404]: expected trait, found type parameter `Add`
    |
 15 | impl<T: Clone, Add> Add for Foo<T> {
    |                     ^^^ not a trait
-   |
 help: possible better candidate is found in another module, you can import it into scope
    |
 13 | use std::ops::Add;
diff --git a/src/test/ui/span/issue-39018.stderr b/src/test/ui/span/issue-39018.stderr
index 2782753f6c8..e865b5192a4 100644
--- a/src/test/ui/span/issue-39018.stderr
+++ b/src/test/ui/span/issue-39018.stderr
@@ -3,7 +3,6 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
    |
 12 |     let x = "Hello " + "World!";
    |             ^^^^^^^^^^^^^^^^^^^ `+` can't be used to concatenate two `&str` strings
-   |
 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
    |
 12 |     let x = "Hello ".to_owned() + "World!";
diff --git a/src/test/ui/span/missing-unit-argument.stderr b/src/test/ui/span/missing-unit-argument.stderr
index af558d0ab83..672b0718a02 100644
--- a/src/test/ui/span/missing-unit-argument.stderr
+++ b/src/test/ui/span/missing-unit-argument.stderr
@@ -3,7 +3,6 @@ error[E0061]: this function takes 1 parameter but 0 parameters were supplied
    |
 21 |     let _: Result<(), String> = Ok();
    |                                 ^^^^
-   |
 help: expected the unit value `()`; create it with empty parentheses
    |
 21 |     let _: Result<(), String> = Ok(());
@@ -35,7 +34,6 @@ error[E0061]: this function takes 1 parameter but 0 parameters were supplied
 ...
 24 |     bar();
    |     ^^^^^
-   |
 help: expected the unit value `()`; create it with empty parentheses
    |
 24 |     bar(());
@@ -49,7 +47,6 @@ error[E0061]: this function takes 1 parameter but 0 parameters were supplied
 ...
 25 |     S.baz();
    |       ^^^
-   |
 help: expected the unit value `()`; create it with empty parentheses
    |
 25 |     S.baz(());
@@ -63,7 +60,6 @@ error[E0061]: this function takes 1 parameter but 0 parameters were supplied
 ...
 26 |     S.generic::<()>();
    |       ^^^^^^^
-   |
 help: expected the unit value `()`; create it with empty parentheses
    |
 26 |     S.generic::<()>(());