]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/issue-62843.stderr
New upstream version 1.65.0+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));
f2b60f7d 5 | ---- ^^^^^^^ the trait `Pattern<'_>` is not implemented for `String`
c295e0f8
XL
6 | |
7 | required by a bound introduced by this call
416331ca 8 |
1b1a35ee 9 = note: the trait bound `String: Pattern<'_>` is not satisfied
f2b60f7d 10 = note: required for `String` to implement `Pattern<'_>`
3c0e092e
XL
11note: required by a bound in `core::str::<impl str>::find`
12 --> $SRC_DIR/core/src/str/mod.rs:LL:COL
13 |
14LL | pub fn find<'a, P: Pattern<'a>>(&'a self, pat: P) -> Option<usize> {
15 | ^^^^^^^^^^^ required by this bound in `core::str::<impl str>::find`
c295e0f8
XL
16help: consider borrowing here
17 |
18LL | println!("{:?}", line.find(&pattern));
19 | +
416331ca
XL
20
21error: aborting due to previous error
22
23For more information about this error, try `rustc --explain E0277`.