]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: expected a `FnMut<(char,)>` closure, found `String` |
e1599b0c | 2 | --> $DIR/issue-62843.rs:4:32 |
416331ca XL |
3 | | |
4 | LL | println!("{:?}", line.find(pattern)); | |
60c5eb7d XL |
5 | | ^^^^^^^ |
6 | | | | |
1b1a35ee | 7 | | expected an implementor of trait `Pattern<'_>` |
60c5eb7d | 8 | | help: consider borrowing here: `&pattern` |
416331ca | 9 | | |
1b1a35ee XL |
10 | = note: the trait bound `String: Pattern<'_>` is not satisfied |
11 | = note: required because of the requirements on the impl of `Pattern<'_>` for `String` | |
416331ca XL |
12 | |
13 | error: aborting due to previous error | |
14 | ||
15 | For more information about this error, try `rustc --explain E0277`. |