]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-62843.stderr
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / suggestions / issue-62843.stderr
1 error[E0277]: expected a `FnMut<(char,)>` closure, found `String`
2   --> $DIR/issue-62843.rs:4:32
3    |
4 LL |     println!("{:?}", line.find(pattern));
5    |                                ^^^^^^^
6    |                                |
7    |                                expected an implementor of trait `Pattern<'_>`
8    |                                help: consider borrowing here: `&pattern`
9    |
10    = note: the trait bound `String: Pattern<'_>` is not satisfied
11    = note: required because of the requirements on the impl of `Pattern<'_>` for `String`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.