Skip to content

Commit 51482d0

Browse files
author
Guanqun Lu
committed
fix unit tests
1 parent 5abc5e9 commit 51482d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/ui/suggestions/remove-as_str.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ error[E0599]: no method named `as_str` found for type `&str` in the current scop
22
--> $DIR/remove-as_str.rs:2:7
33
|
44
LL | s.as_str();
5-
| ^^^^^^ help: try removing `as_str`
5+
| ^^^^^^ try removing `as_str`
66

77
error[E0599]: no method named `as_str` found for type `&'a str` in the current scope
88
--> $DIR/remove-as_str.rs:7:7
99
|
1010
LL | s.as_str();
11-
| ^^^^^^ help: try removing `as_str`
11+
| ^^^^^^ try removing `as_str`
1212

1313
error[E0599]: no method named `as_str` found for type `&mut str` in the current scope
1414
--> $DIR/remove-as_str.rs:12:7
1515
|
1616
LL | s.as_str();
17-
| ^^^^^^ help: try removing `as_str`
17+
| ^^^^^^ try removing `as_str`
1818

1919
error[E0599]: no method named `as_str` found for type `&&str` in the current scope
2020
--> $DIR/remove-as_str.rs:17:7
2121
|
2222
LL | s.as_str();
23-
| ^^^^^^ help: try removing `as_str`
23+
| ^^^^^^ try removing `as_str`
2424

2525
error: aborting due to 4 previous errors
2626

0 commit comments

Comments
 (0)