]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/issue-62843.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.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`.