Skip to content

Commit a4e3f36

Browse files
committed
using tabs in ui tests
1 parent d769539 commit a4e3f36

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/test/ui/issue-47377.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10-
fn main(){
10+
// ignore-tidy-tab
11+
fn main() {
1112
let b = "hello";
1213
let _a = b + ", World!";
1314
//~^ ERROR E0369

src/test/ui/issue-47377.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0369]: binary operation `+` cannot be applied to type `&str`
2-
--> $DIR/issue-47377.rs:12:14
2+
--> $DIR/issue-47377.rs:13:14
33
|
4-
12 | let _a = b + ", World!";
4+
13 | let _a = b + ", World!";
55
| ^^^^^^^^^^^^^^ `+` can't be used to concatenate two `&str` strings
66
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
77
|
8-
12 | let _a = b.to_owned() + ", World!";
8+
13 | let _a = b.to_owned() + ", World!";
99
| ^^^^^^^^^^^^
1010

1111
error: aborting due to previous error

src/test/ui/issue-47380.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010
// ignore-tidy-tab
11-
fn main(){
11+
fn main() {
1212
let b = "hello";
1313
println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
1414
//~^ ERROR E0369

src/test/ui/issue-47380.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0369]: binary operation `+` cannot be applied to type `&str`
2-
--> $DIR/blah.rs:13:33
2+
--> $DIR/issue-47380.rs:13:33
33
|
44
13 | println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
55
| ^^^^^^^^^^^^^^ `+` can't be used to concatenate two `&str` strings

0 commit comments

Comments
 (0)