diff --git a/src/test/ui/issue-47377.rs b/src/test/ui/issue-47377.rs index f2e18590ddef..a492b4b5567e 100644 --- a/src/test/ui/issue-47377.rs +++ b/src/test/ui/issue-47377.rs @@ -7,7 +7,8 @@ // , 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 b80867f1714a..09640c841b8e 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 748891fad5aa..88d4faedb7a1 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 8ead1697c7f6..e220b4551e7f 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