Skip to content

Commit 3e41397

Browse files
committed
fix test error
1 parent 620f480 commit 3e41397

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/test/ui/suggestions/issue-62843.stderr

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ error[E0277]: expected a `FnMut<(char,)>` closure, found `String`
22
--> $DIR/issue-62843.rs:4:32
33
|
44
LL | println!("{:?}", line.find(pattern));
5-
| ---- ^^^^^^^
6-
| | |
7-
| | expected an implementor of trait `Pattern<'_>`
8-
| | help: consider borrowing here: `&pattern`
5+
| ---- ^^^^^^^ expected an implementor of trait `Pattern<'_>`
6+
| |
97
| required by a bound introduced by this call
108
|
119
= note: the trait bound `String: Pattern<'_>` is not satisfied
1210
= note: required because of the requirements on the impl of `Pattern<'_>` for `String`
11+
help: consider borrowing here
12+
|
13+
LL | println!("{:?}", line.find(&pattern));
14+
| +
1315

1416
error: aborting due to previous error
1517

0 commit comments

Comments
 (0)