about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/ui/issue-47377.rs3
-rw-r--r--src/test/ui/issue-47377.stderr6
-rw-r--r--src/test/ui/issue-47380.rs2
-rw-r--r--src/test/ui/issue-47380.stderr2
4 files changed, 7 insertions, 6 deletions
diff --git a/src/test/ui/issue-47377.rs b/src/test/ui/issue-47377.rs
index f2e18590dde..a492b4b5567 100644
--- a/src/test/ui/issue-47377.rs
+++ b/src/test/ui/issue-47377.rs
@@ -7,7 +7,8 @@
 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
-fn main(){
+// ignore-tidy-tab
+fn main() {
     let b = "hello";
     let _a = b + ", World!";
     //~^ ERROR E0369
diff --git a/src/test/ui/issue-47377.stderr b/src/test/ui/issue-47377.stderr
index b80867f1714..09640c841b8 100644
--- a/src/test/ui/issue-47377.stderr
+++ b/src/test/ui/issue-47377.stderr
@@ -1,11 +1,11 @@
 error[E0369]: binary operation `+` cannot be applied to type `&str`
-  --> $DIR/issue-47377.rs:12:14
+  --> $DIR/issue-47377.rs:13:14
    |
-12 |     let _a = b + ", World!";
+13 |     let _a = b + ", 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 _a = b.to_owned() + ", World!";
+13 |     let _a = b.to_owned() + ", World!";
    |              ^^^^^^^^^^^^
 
 error: aborting due to previous error
diff --git a/src/test/ui/issue-47380.rs b/src/test/ui/issue-47380.rs
index 748891fad5a..88d4faedb7a 100644
--- a/src/test/ui/issue-47380.rs
+++ b/src/test/ui/issue-47380.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 // ignore-tidy-tab
-fn main(){
+fn main() {
     let b = "hello";
     println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
     //~^ ERROR E0369
diff --git a/src/test/ui/issue-47380.stderr b/src/test/ui/issue-47380.stderr
index 8ead1697c7f..e220b4551e7 100644
--- a/src/test/ui/issue-47380.stderr
+++ b/src/test/ui/issue-47380.stderr
@@ -1,5 +1,5 @@
 error[E0369]: binary operation `+` cannot be applied to type `&str`
-  --> $DIR/blah.rs:13:33
+  --> $DIR/issue-47380.rs:13:33
    |
 13 |     println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
    |                                      ^^^^^^^^^^^^^^ `+` can't be used to concatenate two `&str` strings