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