]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
1b1a35ee 1error[E0277]: expected a `FnMut<(char,)>` closure, found `String`
e1599b0c 2 --> $DIR/issue-62843.rs:4:32
416331ca
XL
3 |
4LL | 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
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0277`.