]> git.proxmox.com Git - rustc.git/blob - tests/ui/suggestions/issue-62843.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / 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 | ---- ^^^^^^^ the trait `Pattern<'_>` is not implemented for `String`
6 | |
7 | required by a bound introduced by this call
8 |
9 = note: the trait bound `String: Pattern<'_>` is not satisfied
10 = note: required for `String` to implement `Pattern<'_>`
11 note: required by a bound in `core::str::<impl str>::find`
12 --> $SRC_DIR/core/src/str/mod.rs:LL:COL
13 help: consider borrowing here
14 |
15 LL | println!("{:?}", line.find(&pattern));
16 | +
17
18 error: aborting due to 1 previous error
19
20 For more information about this error, try `rustc --explain E0277`.